Skip to content

Commit

Permalink
build: Disable new warning for fmt headers in gcc13 (#3827)
Browse files Browse the repository at this point in the history
Working toward clean build with the new gcc 13.1. This isn't the whole
story, but it is one thing necessary.
  • Loading branch information
lgritz authored May 5, 2023
1 parent 4917cd2 commit 32a361a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/spi/Makefile-bits
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ else ifeq (${platform}, macosx)
MY_CMAKE_FLAGS += \
-DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11
USE_LIBCPLUSPLUS := 0
else ifeq (${COMPILER}, gcc13)
MY_CMAKE_FLAGS += \
-DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13
USE_LIBCPLUSPLUS := 0
else ifeq (${COMPILER},clang13)
MY_CMAKE_FLAGS += -DCMAKE_C_COMPILER=/usr/local/opt/llvm@13/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm@13/bin/clang++
Expand Down
3 changes: 3 additions & 0 deletions src/include/OpenImageIO/detail/fmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ OIIO_PRAGMA_WARNING_PUSH
#if OIIO_GNUC_VERSION >= 70000
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#if OIIO_GNUC_VERSION >= 130000
# pragma GCC diagnostic ignored "-Wdangling-reference"
#endif
#if OIIO_INTEL_LLVM_COMPILER
# pragma GCC diagnostic ignored "-Wtautological-constant-compare"
#endif
Expand Down

0 comments on commit 32a361a

Please sign in to comment.