pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/ham/xlog



Module Name:    pkgsrc
Committed By:   gdt
Date:           Thu Feb  4 20:02:14 UTC 2021

Modified Files:
        pkgsrc/ham/xlog: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 pkgsrc/ham/xlog/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/ham/xlog/Makefile
diff -u pkgsrc/ham/xlog/Makefile:1.93 pkgsrc/ham/xlog/Makefile:1.94
--- pkgsrc/ham/xlog/Makefile:1.93       Thu Feb  4 19:21:48 2021
+++ pkgsrc/ham/xlog/Makefile    Thu Feb  4 20:02:14 2021
@@ -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"



Home | Main Index | Thread Index | Old Index