From a7da0e0ee8baca7fac874f9c463558a29cf4f3f9 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 11 Jul 2016 18:58:22 -0500 Subject: [PATCH] Enabled warnings for non-conforming c99/c++98 code --- tools/toolchains/gcc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/toolchains/gcc.py b/tools/toolchains/gcc.py index a9e8b6af3a0..7de15da2d4f 100644 --- a/tools/toolchains/gcc.py +++ b/tools/toolchains/gcc.py @@ -37,8 +37,8 @@ class GCC(mbedToolchain): "-MMD", "-fno-delete-null-pointer-checks", "-fomit-frame-pointer" ], 'asm': ["-x", "assembler-with-cpp"], - 'c': ["-std=gnu99"], - 'cxx': ["-std=gnu++98", "-fno-rtti", "-Wvla"], + 'c': ["-std=c99", "-pedantic"], + 'cxx': ["-std=c++98", "-pedantic", "-fno-rtti"], 'ld': ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r"], }