]> granicus.if.org Git - graphviz/commit
lib/mingle: [nfc] pre-emptively squash -fpermissive warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 6 Jan 2022 04:48:07 +0000 (20:48 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 Jan 2022 16:15:32 +0000 (08:15 -0800)
commit6ade2f3fda596149e43ecb567c1569574500eb5c
tree0790b58ea5bd28a3f6af3fac646ebefedb6ee778
parent03beacb4eb2872c2c2f6a603eb7e78d932b4e66d
lib/mingle: [nfc] pre-emptively squash -fpermissive warning

When moving this code to C++ in an upcoming commit, this would otherwise
trigger:

  lib/mingle/ink.cpp:46:22: error: uninitialized const 'Origin' [-fpermissive]
   static const point_t Origin;
                        ^
  In file included from lib/mingle/ink.cpp:17:0:
  lib/mingle/ink.h:19:16: note: 'const struct point_t' has no user-provided
    default constructor
   typedef struct {
                  ^
  lib/mingle/ink.h:20:10: note: and the implicitly-defined constructor does not
    initialize 'double point_t::x'
     double x, y;
          ^

This noisy initialization can probably be undone after mingle and libmingle are
moved to entirely C++.

Gitlab: #2154
lib/mingle/ink.c