Skip to content

Commit 4d08c07

Browse files
committed
Merge pull request #43 from adamgreen/gccWarnFlagUpdate
Updates to GCC warning level flags
2 parents 32fa9b2 + 25a332d commit 4d08c07

File tree

1 file changed

+2
-1
lines changed
  • workspace_tools/toolchains

1 file changed

+2
-1
lines changed

workspace_tools/toolchains/gcc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def __init__(self, target, options=None, notify=None, tool_path=""):
4747

4848
# Note: We are using "-O2" instead of "-Os" to avoid this known GCC bug:
4949
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46762
50-
common_flags = ["-c", "-O2", "-Wall",
50+
common_flags = ["-c", "-O2", "-Wall", "-Wextra",
51+
"-Wno-unused-parameter", "-Wno-missing-field-initializers",
5152
"-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
5253
"-ffunction-sections", "-fdata-sections",
5354
"-MMD", "-fno-delete-null-pointer-checks",

0 commit comments

Comments
 (0)