add warning if a function is not declared

Add a warning if a function is not declared. Functions used only inside
a compile unit still can be used, but have to be declared with the
static keyword.
pull/32/head
Stefan Agner 2020-05-21 00:43:12 +02:00 committed by Andri Yngvason
parent 8316994dfa
commit afbeae8410
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ host_system = host_machine.system()
c_args = [ c_args = [
'-D_GNU_SOURCE', '-D_GNU_SOURCE',
'-fvisibility=hidden', '-fvisibility=hidden',
'-Wmissing-prototypes',
] ]
if buildtype != 'debug' and buildtype != 'debugoptimized' if buildtype != 'debug' and buildtype != 'debugoptimized'