diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-10-01 20:54:53 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-10-01 20:54:53 +0100 |
commit | 391b5b359a346aff490103da7dddc85047f83830 (patch) | |
tree | 29eea460a0bd7e1ff21d43b9d6df9af4d8a175e1 /dev-libs/pegtl/files/pegtl-3.2.1-werror.patch | |
parent | c719fdcee603a5a706a45d10cb598762d56a727d (diff) |
gentoo resync : 01.10.2021
Diffstat (limited to 'dev-libs/pegtl/files/pegtl-3.2.1-werror.patch')
-rw-r--r-- | dev-libs/pegtl/files/pegtl-3.2.1-werror.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-libs/pegtl/files/pegtl-3.2.1-werror.patch b/dev-libs/pegtl/files/pegtl-3.2.1-werror.patch new file mode 100644 index 000000000000..776936bd3991 --- /dev/null +++ b/dev-libs/pegtl/files/pegtl-3.2.1-werror.patch @@ -0,0 +1,33 @@ +--- a/Makefile ++++ b/Makefile +@@ -30,7 +30,7 @@ endif + # changed if desired. + + CPPFLAGS ?= -pedantic +-CXXFLAGS ?= -Wall -Wextra -Wshadow -Werror -O3 $(MINGW_CXXFLAGS) ++CXXFLAGS ?= -Wall -Wextra -Wshadow $(MINGW_CXXFLAGS) + + HEADERS := $(shell find include -name '*.hpp') + SOURCES := $(shell find src -name '*.cpp') +--- a/src/example/pegtl/CMakeLists.txt ++++ b/src/example/pegtl/CMakeLists.txt +@@ -60,7 +60,7 @@ foreach(examplesourcefile ${example_sources}) + if(MSVC) + target_compile_options(${exename} PRIVATE /W4 /WX /utf-8) + else() +- target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow -Werror) ++ target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow ) + endif() + endforeach() + +--- a/src/test/pegtl/CMakeLists.txt ++++ b/src/test/pegtl/CMakeLists.txt +@@ -150,7 +150,7 @@ foreach(testsourcefile ${test_sources}) + if(MSVC) + target_compile_options(${exename} PRIVATE /W4 /WX /utf-8) + else() +- target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow -Werror) ++ target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow ) + endif() + if(ANDROID) + add_test(NAME ${exename} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${CMAKE_COMMAND} "-DANDROID_NDK=${ANDROID_NDK}" "-DTEST_RESOURCES_DIR=${CMAKE_SOURCE_DIR}" "-DTEST_RESOURCES=src/test/pegtl/data;src/test/pegtl/file_data.txt;Makefile" "-DUNITTEST=${exename}" -P ${CMAKE_CURRENT_SOURCE_DIR}/ExecuteOnAndroid.cmake) |