Skip to content

Commit

Permalink
Merge pull request #83 from rlcee/pedantic_230717
Browse files Browse the repository at this point in the history
add pedantic errors
  • Loading branch information
rlcee authored Jul 17, 2023
2 parents d522e50 + ac802b8 commit 01b22a6
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 01b22a6

Please sign in to comment.