diff --git a/workspace_tools/toolchains/gcc.py b/workspace_tools/toolchains/gcc.py index c4e8f5c771..e864c7a7a3 100644 --- a/workspace_tools/toolchains/gcc.py +++ b/workspace_tools/toolchains/gcc.py @@ -47,7 +47,8 @@ class GCC(mbedToolchain): # Note: We are using "-O2" instead of "-Os" to avoid this known GCC bug: # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46762 - common_flags = ["-c", "-O2", "-Wall", + common_flags = ["-c", "-O2", "-Wall", "-Wextra", + "-Wno-unused-parameter", "-Wno-missing-field-initializers", "-fmessage-length=0", "-fno-exceptions", "-fno-builtin", "-ffunction-sections", "-fdata-sections", "-MMD", "-fno-delete-null-pointer-checks",