]> granicus.if.org Git - graphviz/commit
more precise definition of vec_new
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Jun 2020 01:01:11 +0000 (18:01 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Jun 2020 17:56:28 +0000 (10:56 -0700)
commitfbb6fa770a988bda0f4ff2e037c757786e514444
tree77fd6821419fe86b29456ddf6f998c3209dcbc78
parent9559f5b633acd2a9ba63a3d550664e09e0f4a1a8
more precise definition of vec_new

Unfortunately a definition/declaration with no parameters in older C is
ambiguous. Explicitly saying 'void' tells the compiler this takes no arguments.
This silences a -Wstrict-prototypes warning on GCC 8.3.

This reapplies commit 31dbec0dbb2aa17535faf9093b15b26207497056 which was backed
out due to a CI failure.
lib/common/routespl.c