Skip to content

Commit 32a361a

Browse files
authored
build: Disable new warning for fmt headers in gcc13 (#3827)
Working toward clean build with the new gcc 13.1. This isn't the whole story, but it is one thing necessary.
1 parent 4917cd2 commit 32a361a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

site/spi/Makefile-bits

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ else ifeq (${platform}, macosx)
222222
MY_CMAKE_FLAGS += \
223223
-DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11
224224
USE_LIBCPLUSPLUS := 0
225+
else ifeq (${COMPILER}, gcc13)
226+
MY_CMAKE_FLAGS += \
227+
-DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13
228+
USE_LIBCPLUSPLUS := 0
225229
else ifeq (${COMPILER},clang13)
226230
MY_CMAKE_FLAGS += -DCMAKE_C_COMPILER=/usr/local/opt/llvm@13/bin/clang \
227231
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm@13/bin/clang++

src/include/OpenImageIO/detail/fmt.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ OIIO_PRAGMA_WARNING_PUSH
4141
#if OIIO_GNUC_VERSION >= 70000
4242
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
4343
#endif
44+
#if OIIO_GNUC_VERSION >= 130000
45+
# pragma GCC diagnostic ignored "-Wdangling-reference"
46+
#endif
4447
#if OIIO_INTEL_LLVM_COMPILER
4548
# pragma GCC diagnostic ignored "-Wtautological-constant-compare"
4649
#endif

0 commit comments

Comments
 (0)