0002-WebKitHelpers.cmake-Add-Wno-error-deprecated-declara.patch 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From de93951f89e851b6689718022eebb4b8b1d14c06 Mon Sep 17 00:00:00 2001
  2. From: Martin Jansa <Martin.Jansa@gmail.com>
  3. Date: Mon, 13 Jan 2014 17:21:25 +0100
  4. Subject: [PATCH 2/3] WebKitHelpers.cmake: Add
  5. -Wno-error=deprecated-declarations -Wno-error=cast-align
  6. -Wno-error=type-limits
  7. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
  8. ---
  9. Source/cmake/WebKitHelpers.cmake | 10 ++++++++++
  10. 1 file changed, 10 insertions(+)
  11. diff --git a/Source/cmake/WebKitHelpers.cmake b/Source/cmake/WebKitHelpers.cmake
  12. index 227b9ee..ae52ef6 100644
  13. --- a/Source/cmake/WebKitHelpers.cmake
  14. +++ b/Source/cmake/WebKitHelpers.cmake
  15. @@ -40,6 +40,25 @@ macro(WEBKIT_SET_EXTRA_COMPILER_FLAGS _target)
  16. # FIXME: When we use -fno-tree-dce to support the jsCStack branch merge, build error occurs due to the uninitialization. Temporarily we set
  17. # uninitialized as build warning in order to support the jsCStack merge. https://bugs.webkit.org/show_bug.cgi?id=127777.
  18. set(OLD_COMPILE_FLAGS "-Werror -Wno-error=unused-parameter -Wno-error=uninitialized -Wno-error=literal-suffix ${OLD_COMPILE_FLAGS}")
  19. + # libsoup-2.4/libsoup/soup-proxy-uri-resolver.h:13:84: error: 'GType soup_proxy_uri_resolver_get_type()' is deprecated (declared at /OE/build/oe-core/tmp-eglibc/sysroots/qemux86-64/usr/include/libsoup-2.4/libsoup/soup-proxy-uri-resolver.h:48) [-Werror=deprecated-declarations]
  20. + set(OLD_COMPILE_FLAGS "-Wno-error=deprecated-declarations ${OLD_COMPILE_FLAGS}")
  21. + # webkit-efl/1_1.10.0+1.11.0-beta1-r0/ewebkit/Source/WTF/wtf/text/StringImpl.h:742:87: error: cast from 'uint8_t* {aka unsigned char*}' to 'WTF::StringImpl**' increases required alignment of target type [-Werror=cast-align]
  22. + set(OLD_COMPILE_FLAGS "-Wno-error=cast-align ${OLD_COMPILE_FLAGS}")
  23. + # webkit-efl/1_1.10.0+1.11.0-beta1-r0/ewebkit/Source/WebKit2/Shared/linux/WebMemorySamplerLinux.cpp:70:16: error: comparison is always false due to limited range of data type [-Werror=type-limits]
  24. + set(OLD_COMPILE_FLAGS "-Wno-error=type-limits ${OLD_COMPILE_FLAGS}")
  25. + # webkit-efl/1_1.11.0-r0/ewebkit/Source/WebKit2/UIProcess/API/efl/EwkView.cpp:832:5: error: missing initializer for member '_Evas_GL_Config::gles_version' [-Werror=missing-field-initializers]
  26. + # this one is new with efl-1.12
  27. + set(OLD_COMPILE_FLAGS "-Wno-error=missing-field-initializers ${OLD_COMPILE_FLAGS}")
  28. + # webkit-efl/1_1.11.0-r0/ewebkit/Source/WTF/wtf/dtoa/bignum.cc:105:10: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
  29. + # this one is new with gcc-5.2
  30. + set(OLD_COMPILE_FLAGS "-Wno-error=strict-overflow ${OLD_COMPILE_FLAGS}")
  31. + # webkit-efl/1_1.11.0-r0/ewebkit/Source/WTF/wtf/SaturatedArithmetic.h:46:26: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
  32. + # this one is new with gcc-5.2
  33. + set(OLD_COMPILE_FLAGS "-Wno-error=parentheses ${OLD_COMPILE_FLAGS}")
  34. + # webkit-efl/1_1.11.0-r0/ewebkit/Source/WebCore/loader/cache/CachedScript.cpp:103:108: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
  35. + # this one is new with gcc-5.2
  36. + set(OLD_COMPILE_FLAGS "-Wno-error=logical-not-parentheses ${OLD_COMPILE_FLAGS}")
  37. +
  38. endif ()
  39. set_target_properties(${_target} PROPERTIES
  40. --
  41. 2.1.3