]> granicus.if.org Git - graphviz/commit
mkSurface: fix mismatch of calling convention in 'addFace'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 7 Nov 2021 20:12:53 +0000 (12:12 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Nov 2021 02:34:09 +0000 (18:34 -0800)
commit76cd3a9b5e86bc91d25f3ec9233e18d089483c4e
treeb3be0da8ec36542011b96dfc4fafbd91f608e7a8
parentc7a4f90197656e7492fda8e2e0016925feb562aa
mkSurface: fix mismatch of calling convention in 'addFace'

The compiler said about this code:

  delaunay.c:484:34: warning: cast between incompatible function types from
    ‘void (*)(GFace *, fstate *)’ {aka ‘void (*)(struct <anonymous> *, struct
    <anonymous> *)’} to ‘gint (*)(void *, void *)’ {aka ‘int (*)(void *,
    void *)’} [-Wcast-function-type]
       gts_surface_foreach_face (s, (GtsFunc) addFace, &statf);
                                    ^

Similar to the prior commit, this was relying on a coincident return value of 0
from the callback function.
lib/neatogen/delaunay.c