]> granicus.if.org Git - graphviz/commit
common sizeArray: remove platform-conditional struct code smattr/7274ea57-04ed-4877-918e-989acc6cae8b
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 04:40:59 +0000 (21:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 05:04:02 +0000 (22:04 -0700)
commit64672ee581eeaf61d202ade01f23b384f9bd7be9
tree8256585ca4079f13da3b7fc8f096e3b05075e6db
parentefa5546ce35fd2ee26152e11f8382a1c86020a10
common sizeArray: remove platform-conditional struct code

08f481fa36bbf199e0f8fbf862639d8fc4e575ab made this initialization platform
dependent and its commit message does not explain why. Both statements are
equivalent; the value of `Agstrictdirected` _is_ `{ 1, 1, 0, 1 }`. This change
removes the Windows branch of this which was causing warnings under MinGW
12.2.0:

  lib/common/htmltable.c:1472:5: error: missing initializer for field 'flatlock'
    of 'Agdesc_t' {aka 'struct Agdesc_s'} [-Werror=missing-field-initializers]
   1472 |     Agdesc_t dir = { 1, 1, 0, 1 };
        |     ^~~~~~~~
  In file included from lib/common/types.h:41,
                   from lib/common/render.h:29,
                   from lib/common/htmltable.c:32:
  lib/cgraph/cgraph.h:166:14: note: 'flatlock' declared here
    166 |     unsigned flatlock:1;        /* if sets are flattened into lists…
        |              ^~~~~~~~
lib/common/htmltable.c