pkgsrc-WIP-changes archive

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

cereal: fix build by removing -Wshadow



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Sun Jun 11 12:18:18 2023 +0200
Changeset:	9740675ba8becab71d1ede2e18cbae63dd0c3996

Modified Files:
	cereal/Makefile
	cereal/distinfo
	cereal/patches/patch-CMakeLists.txt

Log Message:
cereal: fix build by removing -Wshadow

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9740675ba8becab71d1ede2e18cbae63dd0c3996

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

diffstat:
 cereal/Makefile                     | 3 ---
 cereal/distinfo                     | 2 +-
 cereal/patches/patch-CMakeLists.txt | 3 ++-
 3 files changed, 3 insertions(+), 5 deletions(-)

diffs:
diff --git a/cereal/Makefile b/cereal/Makefile
index d346ce2bb8..42406eec99 100644
--- a/cereal/Makefile
+++ b/cereal/Makefile
@@ -17,8 +17,5 @@ USE_CMAKE=	yes
 # Requires stubs-32.h on CentOS, not provided by pkgsrc
 CMAKE_ARGS+=	-DSKIP_PORTABILITY_TEST=ON
 
-# Required for boost as of pkgsrc-2020Q1.
-CFLAGS+=	-Wno-old-style-cast
-
 .include "../../devel/boost-libs/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/cereal/distinfo b/cereal/distinfo
index a8658e2154..2414a22878 100644
--- a/cereal/distinfo
+++ b/cereal/distinfo
@@ -3,4 +3,4 @@ $NetBSD$
 BLAKE2s (cereal-1.3.2.tar.gz) = b472b709d55dc8d2714a0c7b3eeb5c531b6fa3f26750cda36648d11d1c52fd06
 SHA512 (cereal-1.3.2.tar.gz) = 98d306d6292789129675f1c5c5aedcb90cfcc1029c4482893a8f9b23f3c9755e5ed4762d7a528f215345cae6392e87cd8d89467115b6f031b41c8673d6b4b109
 Size (cereal-1.3.2.tar.gz) = 385903 bytes
-SHA1 (patch-CMakeLists.txt) = 0cd5febcf79e677ceec34792f303d44ddc625040
+SHA1 (patch-CMakeLists.txt) = f1b0cbae35a117b3cab41ecc75de34efdf86d2be
diff --git a/cereal/patches/patch-CMakeLists.txt b/cereal/patches/patch-CMakeLists.txt
index 36c565eeb3..d87fd6359b 100644
--- a/cereal/patches/patch-CMakeLists.txt
+++ b/cereal/patches/patch-CMakeLists.txt
@@ -1,6 +1,7 @@
 $NetBSD$
 
 boost as of pkgsrc-2020Q1 fails with -Wold-style-cast.
+boost as of pkgsrc-2023Q1 fails with -Wshadow.
 
 --- CMakeLists.txt.orig	2022-02-28 03:46:32.000000000 +0000
 +++ CMakeLists.txt
@@ -9,7 +10,7 @@ boost as of pkgsrc-2020Q1 fails with -Wold-style-cast.
      add_compile_options(/bigobj /W3 /WX)
  else()
 -    add_compile_options(-Wall -Wextra -pedantic -Wshadow -Wold-style-cast)
-+    add_compile_options(-Wall -Wextra -pedantic -Wshadow)
++    add_compile_options(-Wall -Wextra -pedantic)
      option(WITH_WERROR "Compile with '-Werror' C++ compiler flag" ON)
      if(WITH_WERROR)
          add_compile_options(-Werror)


Home | Main Index | Thread Index | Old Index