Skip to content

Commit

Permalink
Show all gcc warnings, but suppress what we cannot control
Browse files Browse the repository at this point in the history
It's mostly what 'valac' generates like unused variables and functions.
  • Loading branch information
arteymix committed Feb 6, 2016
1 parent dac70d1 commit 487fbcb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ def configure(conf):

conf.recurse(['src', 'docs', 'tests'])

conf.env.append_unique('CFLAGS', ['-Wall',
'-Wno-deprecated-declarations',
'-Wno-unused-variable',
'-Wno-unused-but-set-variable',
'-Wno-unused-function'])

if conf.options.enable_gcov:
conf.env.append_unique('CFLAGS', ['-fprofile-arcs', '-ftest-coverage'])
conf.env.append_unique('VALAFLAGS', ['--debug'])

# configure examples
if conf.options.enable_examples:
Expand Down

0 comments on commit 487fbcb

Please sign in to comment.