]> granicus.if.org Git - graphviz/commit
compiler annotations to explain calling convention of agerr and friends
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 29 Jul 2020 02:38:55 +0000 (19:38 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 3 Aug 2020 13:53:57 +0000 (06:53 -0700)
commit0a982672e53868cb394743a03b4e7b68951c282b
tree2d9b23fad56d2e4472cebd28b0a25a731fa63284
parent98dc7972a2b2a1f841dc7ad183a41d1b7d45d862
compiler annotations to explain calling convention of agerr and friends

This change teaches suitably enlightened compilers (Clang and GCC) more about
how these functions are intended to be called. When told to detect misuse of
format strings (`-Wformat`), they can now detect incorrect calls like that fixed
in 31ef5a3c31214d77137e4b36603a2a97576e851e.
lib/cgraph/cgraph.h