]> granicus.if.org Git - graphviz/commit
ortho: use 'UNUSED' to suppress warnings about debug functions
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 22 May 2022 00:36:50 +0000 (17:36 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Jun 2022 19:38:23 +0000 (12:38 -0700)
commit8ce605e070dbb6059a35a1fedf67a7134b73cdb8
tree6f512de3395bb7c4ae4ffd0c24010456000cbf4a
parente391f114f6dec532acc637a0484d72642bbffbd0
ortho: use 'UNUSED' to suppress warnings about debug functions

As an alternative to hiding these functions by guarding them with `DEBUG`, this
allows the compiler to see and parse these functions even when not building in
debug mode. This means we can catch syntax errors that slip into this code even
when it is not being emitted into the final binary.

This has little effect right now as debugging is forced on in this file, but
this may be a nice extra safe guard in future.
lib/ortho/ortho.c