changeset bfed9fdf0ac7 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=bfed9fdf0ac7
description:
        scons: Enable override suggestions on gcc 5.0+

        ---
         SConstruct | 4 ++++
         1 file changed, 4 insertions(+)

diffstat:

 SConstruct |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 8e14075966d0 -r bfed9fdf0ac7 SConstruct
--- a/SConstruct        Fri May 27 15:02:01 2016 +0100
+++ b/SConstruct        Fri May 27 16:46:03 2016 +0100
@@ -733,6 +733,10 @@
     main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
                                   '-fno-builtin-realloc', '-fno-builtin-free'])
 
+    # add option to check for undeclared overrides
+    if compareVersions(gcc_version, "5.0") > 0:
+        main.Append(CCFLAGS=['-Wno-error=suggest-override'])
+
 elif main['CLANG']:
     # Check for a supported version of clang, >= 3.1 is needed to
     # support similar features as gcc 4.7. See
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to