Skip to content

Commit a3ebaf8

Browse files
authored
fix: suppress clang unqualified-std-cast-call warning (#217)
1 parent e8ad199 commit a3ebaf8

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
include:
195195
# 🐧 manylinux x86_64
196196
- os: ubuntu-24.04
197-
python: "3.10"
197+
python: "3.11"
198198
python_id: cp310
199199
platform_id: manylinux_x86_64
200200
- os: ubuntu-24.04
@@ -212,7 +212,7 @@ jobs:
212212

213213
# 🐧 manylinux aarch64
214214
- os: ubuntu-24.04-arm
215-
python: "3.10"
215+
python: "3.11"
216216
python_id: cp310
217217
platform_id: manylinux_aarch64
218218
- os: ubuntu-24.04-arm
@@ -230,19 +230,19 @@ jobs:
230230

231231
# 🐧 manylinux2014 PyPy x86_64
232232
- os: ubuntu-24.04
233-
python: "3.10"
233+
python: "3.11"
234234
python_id: pp310
235235
platform_id: manylinux_x86_64
236236

237237
# 🐧 manylinux2014 PyPy ARM
238238
- os: ubuntu-24.04-arm
239-
python: "3.10"
239+
python: "3.11"
240240
python_id: pp310
241241
platform_id: manylinux_aarch64
242242

243243
# 🦀 musllinux x86_64
244244
- os: ubuntu-24.04
245-
python: "3.10"
245+
python: "3.11"
246246
python_id: cp310
247247
platform_id: musllinux_x86_64
248248
- os: ubuntu-24.04
@@ -260,7 +260,7 @@ jobs:
260260

261261
# 🦀 musllinux ARM
262262
- os: ubuntu-24.04-arm
263-
python: "3.10"
263+
python: "3.11"
264264
python_id: cp310
265265
platform_id: musllinux_aarch64
266266
- os: ubuntu-24.04-arm
@@ -278,7 +278,7 @@ jobs:
278278

279279
# 🍎 macOS x86_64
280280
- os: macos-13
281-
python: "3.10"
281+
python: "3.11"
282282
python_id: cp310
283283
platform_id: macosx_x86_64
284284
- os: macos-13
@@ -296,7 +296,7 @@ jobs:
296296

297297
# 🍎 macOS arm64 (Apple silicon)
298298
- os: macos-15
299-
python: "3.10"
299+
python: "3.11"
300300
python_id: cp310
301301
platform_id: macosx_arm64
302302
- os: macos-15
@@ -314,7 +314,7 @@ jobs:
314314

315315
# 🪟 Windows x86_64
316316
- os: windows-2025
317-
python: "3.10"
317+
python: "3.11"
318318
python_id: cp310
319319
platform_id: win_amd64
320320
- os: windows-2025

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,15 @@ if(HS_BUILD_REQUIRED)
227227
set(HS_CMAKE_COMMON_FLAGS "-fPIC")
228228
endif()
229229

230+
230231
set(HS_CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HS_CMAKE_COMMON_FLAGS}")
231232
set(HS_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HS_CMAKE_COMMON_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=1")
233+
234+
# Add clang warning suppression for vectorscan builds
235+
if(USE_VECTORSCAN AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER MATCHES "[Cc]lang.*"))
236+
set(HS_CMAKE_CXX_FLAGS "${HS_CMAKE_CXX_FLAGS} -Wno-unqualified-std-cast-call")
237+
endif()
238+
232239
set(HS_CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
233240
set(HS_GENERATOR "Unix Makefiles")
234241
endif()
@@ -432,7 +439,7 @@ if(HS_BUILD_REQUIRED)
432439
STAMP_DIR ${hyperscan_STAMP_DIR}
433440
INSTALL_COMMAND ""
434441
CMAKE_GENERATOR ${HS_GENERATOR}
435-
CMAKE_ARGS ${HS_CMAKE_ARGS}
442+
CMAKE_ARGS ${HS_CMAKE_ARGS} -Wno-dev
436443
BUILD_BYPRODUCTS ${HS_BUILD_BYPRODUCTS}
437444
BUILD_COMMAND ${CMAKE_COMMAND} --build . --config Release --parallel 4 ${HS_TARGETS}
438445
)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ test-command = "pytest --pyargs {package}/tests -vvv"
6161
test-requires = ["pytest>=7.0", "pytest-mock"]
6262
# Will avoid testing on emulated architectures and macOS Apple silicon
6363
test-skip = "*-*linux_{ppc64le,s390x} *-macosx_arm64"
64+
enable = ["pypy"]
6465

6566
[tool.cibuildwheel.linux]
6667
before-all = ["yum -y update", """yum -y install \

0 commit comments

Comments
 (0)