diff options
| author | Hiroki Sato <hrs@FreeBSD.org> | 2015-09-11 22:51:10 +0000 |
|---|---|---|
| committer | Hiroki Sato <hrs@FreeBSD.org> | 2015-09-11 22:51:10 +0000 |
| commit | 7bd9a97baf741709efb7bef8192267cfa74e3cf3 (patch) | |
| tree | 5049107ef301b10ec0026492531a8dc9aad85066 /net/xorp/files/patch-SConstruct | |
| parent | multimedia/transcode: convert to target helpers (diff) | |
Fix compile error on 9.x and 11.x.
Spotted by: amdmi3
PR: 203011
Notes
Notes:
svn path=/head/; revision=396720
Diffstat (limited to 'net/xorp/files/patch-SConstruct')
| -rw-r--r-- | net/xorp/files/patch-SConstruct | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/net/xorp/files/patch-SConstruct b/net/xorp/files/patch-SConstruct index f64ab642719b..100b45bb6315 100644 --- a/net/xorp/files/patch-SConstruct +++ b/net/xorp/files/patch-SConstruct @@ -25,20 +25,11 @@ variables = vars) prefix = env['prefix'] -@@ -858,13 +849,13 @@ if ((build != "i386-pc-mingw32") and - host_cpu == "i386" or - host_cpu == "x86_64")): - env.AppendUnique(CFLAGS = [ -- '-Werror', -+ '-Werror -Wno-unused-function', - ]) - env.AppendUnique(CXXFLAGS = [ -- '-Werror', -+ '-Werror -Wno-unused-function', - ]) - else: -- print "WARNING: Detected funky platform, will not enable -Werror compile option: ", host_cpu -+ print "WARNING: Detected funky platform, will not enable -Werror -Wno-unused-function compile option: ", host_cpu - +@@ -880,6 +871,7 @@ env.AppendUnique(CFLAGS = [ + '-Wcast-align', + '-Wstrict-prototypes', + '-Wnested-externs', ++ '-Wno-unused-function', + '-pipe', + ]) - # NOTE: gcc specific flags. |
