From: Christian Lamparter Date: Fri, 26 Jan 2018 19:54:59 +0000 (+0100) Subject: carl9170 firmware: remove explicit language standard std=gnu99 parameter X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;ds=inline;h=d63574311a70fc337ac5337620d6102ef2d3e23c;hp=e15bd5da7d61a58052a7ed75da6c1036b3c27f26;p=carl9170fw.git carl9170 firmware: remove explicit language standard std=gnu99 parameter GCC 7.3.0 defaults to -std=gnu11 if no C language dialect options is given. Signed-off-by: Christian Lamparter --- diff --git a/carlfw/CMakeLists.txt b/carlfw/CMakeLists.txt index 02c80bf..8647a75 100644 --- a/carlfw/CMakeLists.txt +++ b/carlfw/CMakeLists.txt @@ -7,7 +7,7 @@ include("../config.cmake") set(CARL9170_FW_ELF carl9170.elf) set(CARLFW_CFLAGS_WARNING "-W -Wall -Wextra -Wunreachable-code -Winline -Wlogical-op -Wno-packed-bitfield-compat -Winit-self -Wshadow -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wformat=2 -Wcast-align -Wmissing-format-attribute -Wmissing-prototypes -Wtype-limits -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -Wnested-externs -Wdisabled-optimization -Wpointer-arith -Wvolatile-register-var -Waddress -Wbad-function-cast -Wunsafe-loop-optimizations") -set(CARLFW_CFLAGS_EXTRA "-mbitops -std=gnu99 -ffunction-sections -Wframe-larger-than=128 -Werror") +set(CARLFW_CFLAGS_EXTRA "-mbitops -ffunction-sections -Wframe-larger-than=128 -Werror") set(CARLFW_CFLAGS_DEF "-D__CARL9170FW__") if (CONFIG_CARL9170FW_AGGRESSIVE_CFLAGS) set(CARLFW_CFLAGS_AGGRESSIVE "-fomit-frame-pointer -fsee -frename-registers -ftree-vectorize -flto -fstrict-volatile-bitfields -fmodulo-sched -fwhole-program") diff --git a/tools/src/CMakeLists.txt b/tools/src/CMakeLists.txt index d141521..637a788 100644 --- a/tools/src/CMakeLists.txt +++ b/tools/src/CMakeLists.txt @@ -8,6 +8,6 @@ set(tools fwinfo miniboot checksum) foreach(tool ${tools}) add_executable( ${tool} ${tool}.c ) - add_definitions("-std=gnu99 -Wall -Wextra -Wshadow") + add_definitions("-Wall -Wextra -Wshadow") target_link_libraries( ${tool} carlfw ) endforeach()