Allow building bindings with compilers that do not support the -Wno-nonnull-compare flag

This commit is contained in:
Anghelo Carvajal 2025-02-15 16:45:53 -03:00
parent 5a112c5c01
commit c0e955fb97
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Allow building Python bindings with Clang versions that do not support some
some warning flags.
- Specifically `-Wno-nonnull-compare`.
## [1.12.6] - 2025-02-06
### Fixed

View File

@ -13,6 +13,7 @@ headersList = [str(x) for x in bindingsPath.glob("**/*.h")] + [str(x) for x in s
extraCompileArgs = ["-std=c11", "-Wall", "-g",]
if platform.system() == "Linux":
extraCompileArgs += ["-Wno-unknown-warning-option",]
extraCompileArgs += ["-Os", "-Wextra",]
extraCompileArgs += ["-Werror=vla", "-Werror=switch", "-Werror=implicit-fallthrough", "-Werror=unused-function", "-Werror=unused-parameter", "-Werror=shadow", "-Werror=switch"]
extraCompileArgs += ["-Werror=implicit-function-declaration", "-Werror=incompatible-pointer-types"]