diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-19 15:38:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-19 15:38:48 +0100 |
commit | 3b882b15eed3bb219b5f340b63733c8cda643079 (patch) | |
tree | c84890953bd9a939137323d667a7762da89f0f0c /media-libs/libsfml/files | |
parent | 4d9aef45678c7cb55b24107642790224ab8c153b (diff) |
gentoo auto-resync : 19:08:2023 - 15:38:48
Diffstat (limited to 'media-libs/libsfml/files')
-rw-r--r-- | media-libs/libsfml/files/libsfml-2.6.0-supress-werror.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/media-libs/libsfml/files/libsfml-2.6.0-supress-werror.patch b/media-libs/libsfml/files/libsfml-2.6.0-supress-werror.patch new file mode 100644 index 000000000000..1110b4b89492 --- /dev/null +++ b/media-libs/libsfml/files/libsfml-2.6.0-supress-werror.patch @@ -0,0 +1,30 @@ +This primarily to suppress error such as: +/var/tmp/portage/media-libs/libsfml-2.6.0/work/SFML-2.6.0/src/SFML/Window/Unix/JoystickImpl.cpp:405:36: error: implicit conversion changes signedness: 'unsigned long' to 'int' [-Werror,-Wsign-conversion] + int result = ioctl(fd, JSIOCGNAME(sizeof(name)), name); + ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/linux/joystick.h:59:26: note: expanded from macro 'JSIOCGNAME' +#define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) /* get identifier string */ + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Even seems like upstream is has removed it with commit +https://github.com/SFML/SFML/commit/aa82ea132b9296a31922772027ad5d14c1fa381b +--- a/cmake/CompilerWarnings.cmake ++++ b/cmake/CompilerWarnings.cmake +@@ -68,16 +68,11 @@ function(set_file_warnings) + # -Wimplicit-fallthrough # warn when a missing break causes control flow to continue at the next case in a switch statement (disabled until better compiler support for explicit fallthrough is available) + ${NON_ANDROID_CLANG_AND_GCC_WARNINGS} + ) +- ++ + # Disable warnings as errors when using Clang on Windows to work around deprecation warnings in Windows APIs + if(SFML_OS_WINDOWS AND (SFML_COMPILER_CLANG OR SFML_COMPILER_CLANG_CL)) + set(WARNINGS_AS_ERRORS FALSE) + endif() +- +- if(WARNINGS_AS_ERRORS) +- set(CLANG_AND_GCC_WARNINGS ${CLANG_AND_GCC_WARNINGS} -Werror) +- set(MSVC_WARNINGS ${MSVC_WARNINGS} /WX) +- endif() + + set(CLANG_WARNINGS + ${CLANG_AND_GCC_WARNINGS} |