forked from jsonn/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable -Wswitch for newer GCC versions
- Loading branch information
joerg
committed
Dec 7, 2011
1 parent
11f2bec
commit 7cabe40
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$NetBSD: patch-.._patch-Config.mk,v 1.1 2011/12/07 15:22:28 joerg Exp $ | ||
|
||
--- ../Config.mk.orig 2011-12-07 10:40:48.000000000 +0000 | ||
+++ ../Config.mk | ||
@@ -70,7 +70,7 @@ CFLAGS += -Wall -Wstrict-prototypes | ||
|
||
# -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the | ||
# result of any casted expression causes a warning. | ||
-CFLAGS += -Wno-unused-value | ||
+CFLAGS += -Wno-unused-value -Wno-switch | ||
|
||
HOSTCFLAGS += $(call cc-option,$(HOSTCC),-Wdeclaration-after-statement,) | ||
CFLAGS += $(call cc-option,$(CC),-Wdeclaration-after-statement,) |