git: 5e752ae738fc - main - math/libpoly: Fix build by removing -Werror

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 25 Aug 2023 03:28:28 UTC
The branch main has been updated by yuri:

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

commit 5e752ae738fcb38e345f250219da9927903fd67d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-08-25 03:27:57 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-08-25 03:27:57 +0000

    math/libpoly: Fix build by removing -Werror
    
    Reported by:    fallout
---
 math/libpoly/files/patch-src_CMakeLists.txt | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/math/libpoly/files/patch-src_CMakeLists.txt b/math/libpoly/files/patch-src_CMakeLists.txt
new file mode 100644
index 000000000000..2c0b7d0162e0
--- /dev/null
+++ b/math/libpoly/files/patch-src_CMakeLists.txt
@@ -0,0 +1,13 @@
+--- src/CMakeLists.txt.orig	2023-08-25 03:26:04 UTC
++++ src/CMakeLists.txt
+@@ -64,8 +64,8 @@ set(polyxx_SOURCES
+ )
+ 
+ # Add warnings as errors for good practice
+-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -std=gnu99")
+-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -std=c++11")
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=gnu99")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++11")
+ 
+ include_directories(${GMP_INCLUDE_DIR})
+ include_directories(${libpoly_SOURCE_DIR}/include)