mirror of
https://github.com/MaskRay/ccls.git
synced 2025-03-21 08:16:18 +00:00
-Wno-unused-result on GCC (#462)
This commit is contained in:
parent
40233104a6
commit
84b2187d2a
2
wscript
2
wscript
@ -170,6 +170,8 @@ def configure(ctx):
|
||||
cxxflags = ['-g', '-Wall', '-Wno-sign-compare', '-Werror']
|
||||
if ctx.env.CXX_NAME == 'gcc':
|
||||
cxxflags.append('-Wno-return-type')
|
||||
# Otherwise (void)write(...) => -Werror=unused-result
|
||||
cxxflags.append('-Wno-unused-result')
|
||||
|
||||
if all(not x.startswith('-std=') for x in ctx.env.CXXFLAGS):
|
||||
cxxflags.append('-std=c++11')
|
||||
|
Loading…
Reference in New Issue
Block a user