Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2023 16:27:52 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: caa09c9ef540 - main - math/libdivide: remove -Werror
Message-ID:  <202303071627.327GRqoL074249@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=caa09c9ef54097f69e68659c834b59b140954f84

commit caa09c9ef54097f69e68659c834b59b140954f84
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-03-07 15:18:47 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-03-07 16:27:47 +0000

    math/libdivide: remove -Werror
    
    With clang 15, a deprecation warning is emitted in a test file, and this
    makes the compilation fail:
    
    a function declaration without a prototype is deprecated in all versions of C
---
 math/libdivide/files/patch-CMakeLists.txt | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/math/libdivide/files/patch-CMakeLists.txt b/math/libdivide/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..b89ebfba8f21
--- /dev/null
+++ b/math/libdivide/files/patch-CMakeLists.txt
@@ -0,0 +1,23 @@
+--- CMakeLists.txt.orig	2021-07-17 18:22:14 UTC
++++ CMakeLists.txt
+@@ -16,9 +16,9 @@ include(CMakeSanitize)
+ # Maximum warnings level & warnings as error
+ add_compile_options(
+     "$<$<CXX_COMPILER_ID:MSVC>:/W4;/WX>"
+-    "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic;-Werror>"
+-    "$<$<CXX_COMPILER_ID:Clang>:-Wall;-Wextra;-pedantic;-Werror>"
+-    "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic;-Werror>"
++    "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedanticr>"
++    "$<$<CXX_COMPILER_ID:Clang>:-Wall;-Wextra;-pedantic>"
++    "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic>"
+ )
+ 
+ # Build options ################################################
+@@ -93,7 +93,6 @@ if (BUILD_TESTS AND NOT CMAKE_CROSSCOMPILING)
+         CPU_ARM_NEON)
+     if (CPU_X86 OR CPU_ARM_NEON)
+         cmake_push_check_state()
+-        set(CMAKE_REQUIRED_FLAGS -Werror)
+         check_cxx_compiler_flag(-march=native MARCH_NATIVE)
+         cmake_pop_check_state()
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303071627.327GRqoL074249>