]> git.pld-linux.org Git - packages/ewebkit.git/blob - ewebkit-werror.patch
BR check-devel
[packages/ewebkit.git] / ewebkit-werror.patch
1 --- efl-webkit/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp.orig        2014-02-14 12:38:19.000000000 +0100
2 +++ efl-webkit/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp     2014-03-19 20:23:11.401525259 +0100
3 @@ -307,8 +307,8 @@
4      dataLogF("UnlinkedCodeBlock %p expressionRangeInfo[%zu] {\n", this, size);
5      for (size_t i = 0; i < size; i++) {
6          ExpressionRangeInfo& info = expressionInfo[i];
7 -        unsigned line;
8 -        unsigned column;
9 +        unsigned line = 0;
10 +        unsigned column = 0;
11          getLineAndColumn(info, line, column);
12          dumpLineColumnEntry(i, instructions(), info.instructionOffset, line, column);
13      }
14 --- efl-webkit/Source/cmake/WebKitHelpers.cmake.orig    2013-12-27 11:25:36.000000000 +0100
15 +++ efl-webkit/Source/cmake/WebKitHelpers.cmake 2015-10-09 21:45:01.022925646 +0200
16 @@ -44,7 +44,7 @@
17  
18          # Enable errors on warning
19          if (OPTION_ENABLE_WERROR)
20 -            set(OLD_COMPILE_FLAGS "-Werror -Wno-error=unused-parameter ${OLD_COMPILE_FLAGS}")
21 +            set(OLD_COMPILE_FLAGS "-Werror -Wno-error=unused-parameter -Wno-error=uninitialized ${OLD_COMPILE_FLAGS}")
22          endif ()
23  
24          set_target_properties(${_target} PROPERTIES
25 --- efl-webkit/Source/WTF/wtf/SaturatedArithmetic.h.orig        2015-10-11 21:58:21.340594067 +0200
26 +++ efl-webkit/Source/WTF/wtf/SaturatedArithmetic.h     2015-10-11 21:59:56.195516793 +0200
27 @@ -43,7 +43,7 @@
28  
29      // Can only overflow if the signed bit of the two values match. If the signed
30      // bit of the result and one of the values differ it did overflow.
31 -    if (!((ua ^ ub) >> 31) & (result ^ ua) >> 31)
32 +    if (!((ua ^ ub) >> 31) && (result ^ ua) >> 31)
33          result = std::numeric_limits<int>::max() + (ua >> 31);
34  
35      return result;
36 @@ -57,7 +57,7 @@
37  
38      // Can only overflow if the signed bit of the two values do not match. If the
39      // signed bit of the result and the first value differ it did overflow.
40 -    if ((ua ^ ub) >> 31 & (result ^ ua) >> 31)
41 +    if ((ua ^ ub) >> 31 && (result ^ ua) >> 31)
42          result = std::numeric_limits<int>::max() + (ua >> 31);
43  
44      return result;
45 --- efl-webkit/Source/WebCore/platform/audio/MediaSessionManager.cpp.orig       2014-02-08 13:36:06.000000000 +0100
46 +++ efl-webkit/Source/WebCore/platform/audio/MediaSessionManager.cpp    2015-10-12 18:06:33.023265872 +0200
47 @@ -136,7 +136,7 @@
48  {
49      MediaSession::MediaType sessionType = session.mediaType();
50      SessionRestrictions restrictions = m_restrictions[sessionType];
51 -    if (!restrictions & ConcurrentPlaybackNotPermitted)
52 +    if (!(restrictions & ConcurrentPlaybackNotPermitted))
53          return;
54  
55      for (auto* oneSession : m_sessions) {
This page took 0.067686 seconds and 3 git commands to generate.