Austin Harris has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/50258 )
Change subject: scons: Ignore string truncation warnings in libelf
......................................................................
scons: Ignore string truncation warnings in libelf
Compiling libelf with gcc 10 gives errors for string truncation
so add them to the ignore list.
Change-Id: I90740ad9b522727f7a3d92308550915181ad7e67
---
M ext/libelf/SConscript
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/ext/libelf/SConscript b/ext/libelf/SConscript
index f3dbe6a..cbfe267 100644
--- a/ext/libelf/SConscript
+++ b/ext/libelf/SConscript
@@ -30,6 +30,8 @@
import os, subprocess
+from gem5_scons.util import compareVersions
+
Import('main')
elf_files = []
@@ -95,6 +97,9 @@
'-Wno-unused-but-set-variable',
'-Wno-implicit-function-declaration',
'-Wno-override-init'])
+ if compareVersions(m4env['CXXVERSION'], '10.1.0') >= 0:
+ m4env.Append(CCFLAGS=['-Wno-stringop-truncation',
+ '-Wno-stringop-overflow'])
if m4env['CLANG']:
m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-Wno-pointer-sign'])
# clang defaults to c99 (while gcc defaults to gnu89) and there is a
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/50258
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I90740ad9b522727f7a3d92308550915181ad7e67
Gerrit-Change-Number: 50258
Gerrit-PatchSet: 1
Gerrit-Owner: Austin Harris <m...@austin-harris.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s