Skip to content

Commit

Permalink
add pedantic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rlcee committed Jul 17, 2023
1 parent d522e50 commit ac802b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/sconstruct_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def libPath(mu2eOpts):
def mergeFlags(mu2eOpts):
build = mu2eOpts['build']
flags = ['-std=c++17','-Wall','-Wno-unused-local-typedefs','-g',
'-Werror','-Wl,--no-undefined','-gdwarf-2', '-Wl,--as-needed',
'-Werror','-Werror=pedantic',
'-Wl,--no-undefined','-gdwarf-2', '-Wl,--as-needed',
'-Werror=return-type','-Winit-self','-Woverloaded-virtual' ]
if build == 'prof':
flags = flags + [ '-O3', '-fno-omit-frame-pointer', '-DNDEBUG' ]
Expand Down

0 comments on commit ac802b8

Please sign in to comment.