Browse Source

Merge pull request #4671 from martin-frbg/issue4668

Silence a GCC14 warning/error in the f2c-converted LAPACK
tags/v0.3.28^2
Martin Kroeker GitHub 2 years ago
parent
commit
a63d71129c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions
  1. +3
    -0
      Makefile.system
  2. +6
    -0
      cmake/system.cmake

+ 3
- 0
Makefile.system View File

@@ -356,6 +356,9 @@ OBJCONV = $(CROSS_SUFFIX)objconv
ifeq ($(NOFORTRAN), 1)
C_LAPACK = 1
override FEXTRALIB =
ifeq ($(C_COMPILER), GCC)
CCOMMON_OPT += -Wno-error=incompatible-pointer-types
endif
endif

ifeq ($(C_COMPILER), GCC)


+ 6
- 0
cmake/system.cmake View File

@@ -160,6 +160,12 @@ else()
endif ()
endif ()

if (C_LAPACK)
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
set(CCOMMON_OPT "${CCOMMON_OPT} -Wno-error=incompatible-pointer-types")
endif ()
endif ()

include("${PROJECT_SOURCE_DIR}/cmake/prebuild.cmake")
if (DEFINED TARGET)
if (${TARGET} STREQUAL COOPERLAKE AND NOT NO_AVX512)


Loading…
Cancel
Save