Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2024 08:17:24 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ced925f70cd1 - main - science/kplib: Fix build by removing -Werror promoting a warrning to an error
Message-ID:  <202404110817.43B8HOFr022104@gitrepo.freebsd.org>

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

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

commit ced925f70cd14fcb7f46ffc812d6ac24f6eced46
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-04-11 03:46:15 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-04-11 08:17:15 +0000

    science/kplib: Fix build by removing -Werror promoting a warrning to an error
    
    Reported by:    fallout
---
 science/kplib/files/patch-CMakeLists.txt | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/science/kplib/files/patch-CMakeLists.txt b/science/kplib/files/patch-CMakeLists.txt
index 99cbeca9ee61..27ccdfd27aad 100644
--- a/science/kplib/files/patch-CMakeLists.txt
+++ b/science/kplib/files/patch-CMakeLists.txt
@@ -1,8 +1,16 @@
---- CMakeLists.txt.orig	2022-07-21 22:39:52 UTC
+- removal of -Werror is to quiet this warning promoted to error:
+- error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
+-   612 |   int oppedArray[size][size];
+-       |                        ^~~~
+
+--- CMakeLists.txt.orig	2023-04-09 05:04:30 UTC
 +++ CMakeLists.txt
-@@ -4,7 +4,7 @@ project(kplib)
+@@ -2,9 +2,9 @@ project(kplib)
  
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fPIC")
+ project(kplib)
+ 
+-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fPIC")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -fPIC")
  set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")                 # Debug mode.
 -set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native")    # Default optimization.
 +set(CMAKE_CXX_FLAGS_RELEASE "-O3")    # Default optimization.



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