]> granicus.if.org Git - graphviz/commit
cgraph: prototype 'aagerror', squashing a -Wmissing-prototypes warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Aug 2022 19:28:47 +0000 (12:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Aug 2022 19:28:47 +0000 (12:28 -0700)
commit15f1b2f12e612ba77da981035f2f0aa95b477b1a
treebc481c3b6cc18a34a667a3856e4a05838b93e30a
parent64f39fa309bf0b4f184bc224f49686c9579e70e4
cgraph: prototype 'aagerror', squashing a -Wmissing-prototypes warning

Normally Flex prototypes the `yyerror` function for you. But we change the
default prefix of this scanner from `yy` to `aag`. So this function ends up
unprototyped and the compiler thinks this worthy of a warning.

In a sense, this change is a bit of a hack to silence this. But there does not
seem much value to prototyping this in a separate header because most of the
calls to this function come from generated Flex code itself.
lib/cgraph/scan.l