diff options
author | gdt <gdt@pkgsrc.org> | 2021-02-04 20:02:14 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2021-02-04 20:02:14 +0000 |
commit | 4e6e2121beb1b48651a46d038eb2f69b4de48569 (patch) | |
tree | 2f442870dd64e55f903a5859377a33da1fe33051 /ham/xlog | |
parent | e301eddaf386d26f017c0874b0d74c1f45363329 (diff) | |
download | pkgsrc-4e6e2121beb1b48651a46d038eb2f69b4de48569.tar.gz |
ham/xlog: Rototill approach to non-portable warnings
Mostly, this is adapting the warning flags removed from the build and
those added to clang vs gcc.
Hoist removal of -Wno-stringop-truncation to always happen, because it
was separately on for clang and gcc, and it seems likely it would be
unknown on some other compiler.
Diffstat (limited to 'ham/xlog')
-rw-r--r-- | ham/xlog/Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/ham/xlog/Makefile b/ham/xlog/Makefile index f177a04dde9..7f96348b9d8 100644 --- a/ham/xlog/Makefile +++ b/ham/xlog/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.93 2021/02/04 19:21:48 gdt Exp $ +# $NetBSD: Makefile,v 1.94 2021/02/04 20:02:14 gdt Exp $ # DISTNAME= xlog-2.0.20 @@ -16,16 +16,22 @@ GNU_CONFIGURE= yes USE_PKGLOCALEDIR= yes USE_TOOLS+= gmake pkg-config +# Fails with gcc 5.5.0 (netbsd-8) and clang. +BUILDLINK_TRANSFORM+= rm:-Wno-stringop-truncation + .include "../../mk/compiler.mk" .if !empty(PKGSRC_COMPILER:Mclang) BUILDLINK_TRANSFORM+= rm:-Wno-unused-but-set-variable -_WRAP_EXTRA_ARGS.CC+= -Wno-error=parentheses-equality -Wno-error=tautological-compare -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-uninitialized -CWRAPPERS_APPEND.cc+= -Wno-error=parentheses-equality -Wno-error=tautological-compare -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-uninitialized -.endif - -# Problematic with 5.5.0 on netbsd-8. -.if !empty(PKGSRC_COMPILER:Mgcc) -BUILDLINK_TRANSFORM+= rm:-Wno-stringop-truncation +# xlog has things like: #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +# https://savannah.nongnu.org/bugs/index.php?60003 +_WRAP_EXTRA_ARGS.CC+= -Wno-unknown-warning-option +CWRAPPERS_APPEND.cc+= -Wno-unknown-warning-option +# xlog has code that triggers clang warnings +# https://savannah.nongnu.org/bugs/index.php?60004 +_WRAP_EXTRA_ARGS.CC+= -Wno-error=parentheses-equality +CWRAPPERS_APPEND.cc+= -Wno-error=parentheses-equality +_WRAP_EXTRA_ARGS.CC+= -Wno-uninitialized +CWRAPPERS_APPEND.cc+= -Wno-uninitialized .endif .include "../../databases/shared-mime-info/buildlink3.mk" |