diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/wpilib/no-werror.patch | |
Diffstat (limited to 'vcpkg/ports/wpilib/no-werror.patch')
| -rw-r--r-- | vcpkg/ports/wpilib/no-werror.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/wpilib/no-werror.patch b/vcpkg/ports/wpilib/no-werror.patch new file mode 100644 index 0000000..8bcd699 --- /dev/null +++ b/vcpkg/ports/wpilib/no-werror.patch @@ -0,0 +1,15 @@ +diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake +index 93b35b8ab..df7ff7365 100644 +--- a/cmake/modules/CompileWarnings.cmake ++++ b/cmake/modules/CompileWarnings.cmake +@@ -1,8 +1,8 @@ + macro(wpilib_target_warnings target) + if(NOT MSVC) +- target_compile_options(${target} PRIVATE -Wall -pedantic -Wextra -Werror -Wno-unused-parameter ${WPILIB_TARGET_WARNINGS}) ++ target_compile_options(${target} PRIVATE -Wall -pedantic -Wextra -Wno-unused-parameter ${WPILIB_TARGET_WARNINGS}) + else() +- target_compile_options(${target} PRIVATE /wd4146 /wd4244 /wd4251 /wd4267 /WX /D_CRT_SECURE_NO_WARNINGS ${WPILIB_TARGET_WARNINGS}) ++ target_compile_options(${target} PRIVATE /wd4146 /wd4244 /wd4251 /wd4267 /D_CRT_SECURE_NO_WARNINGS ${WPILIB_TARGET_WARNINGS}) + endif() + + # Suppress C++-specific OpenCV warning; C compiler rejects it with an error |