Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: More warning elimination for clang18 #4257

Merged
merged 1 commit into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ jobs:
!build/testsuite/j2kp4files_v1_5


macrunner:
macos:
name: "${{matrix.runner}} appleclang${{matrix.aclang}}/C++${{matrix.cxx_std}} py${{matrix.python_ver}} ${{matrix.desc}}"
strategy:
fail-fast: false
Expand All @@ -439,26 +439,32 @@ jobs:
- desc: MacOS-12
runner: macos-12
nametag: macos12-py310
cc_compiler: clang
cxx_compiler: clang++
cxx_std: 17
python_ver: "3.10"
aclang: 13
- desc: MacOS-13
runner: macos-13
nametag: macos13-py311
cc_compiler: clang
cxx_compiler: clang++
cxx_std: 17
python_ver: "3.11"
aclang: 14
simd: sse4.2,avx2
- desc: MacOS-14-ARM
runner: macos-14
nametag: macos14-arm-py311
cc_compiler: clang
cxx_compiler: clang++
cxx_std: 20
python_ver: "3.11"
aclang: 15
runs-on: ${{ matrix.runner }}
env:
CC: clang
CXX: clang++
CXX: ${{matrix.cxx_compiler}}
CC: ${{matrix.cc_compiler}}
CMAKE_CXX_STANDARD: ${{ matrix.cxx_std }}
PYTHON_VERSION: ${{ matrix.python_ver }}
USE_SIMD: ${{matrix.simd}}
Expand Down
9 changes: 7 additions & 2 deletions src/build-scripts/install_homebrew_deps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ if [[ `which brew` == "" ]] ; then
fi


#brew update >/dev/null
if [[ "${DO_BREW_UPDATE:=0}" != "0" ]] ; then
brew update >/dev/null
fi
echo ""
echo "Before my brew installs:"
brew list --versions
Expand Down Expand Up @@ -48,6 +50,10 @@ fi
if [[ "${USE_QT}" != "0" ]] ; then
brew install --display-times -q qt${QT_VERSION}
fi
if [[ "${USE_LLVM:=0}" != "0" ]] || [[ "${LLVMBREWVER}" != "" ]]; then
brew install --display-times -q llvm${LLVMBREWVER}
export PATH=/usr/local/opt/llvm/bin:$PATH
fi

echo ""
echo "After brew installs:"
Expand All @@ -61,7 +67,6 @@ pip${PYTHON_VERSION} install numpy
export PATH=/usr/local/opt/qt5/bin:$PATH
export PATH=/usr/local/opt/python/libexec/bin:$PATH
export PYTHONPATH=/usr/local/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
#export PATH=/usr/local/opt/llvm/bin:$PATH

# Save the env for use by other stages
src/build-scripts/save-env.bash
11 changes: 9 additions & 2 deletions src/libutil/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
// SPDX-License-Identifier: Apache-2.0
// https://github.com/AcademySoftwareFoundation/OpenImageIO

#include <OpenImageIO/platform.h>

OIIO_PRAGMA_WARNING_PUSH
OIIO_CLANG_PRAGMA(clang diagnostic ignored "-Wdeprecated-declarations")
// Force include of locale header with deprecated warnings turned off to
// combat clang18 vs unicode deprecation warnings.
#include <locale>
OIIO_PRAGMA_WARNING_POP

#include <cstdlib>
#include <string>

#include <OpenImageIO/platform.h>

#ifdef _WIN32
# include <windows.h>
#else
Expand Down
Loading