RESOLVED DUPLICATE of bug 125298 125296
[EFL] Buildfix after r160151
https://bugs.webkit.org/show_bug.cgi?id=125296
Summary [EFL] Buildfix after r160151
Krzysztof Czech
Reported 2013-12-05 02:52:32 PST
/mnt/buildbot/efl-linux-slave-3/efl-linux-32-release/build/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943:517: error: format '%ld' expects argument of type 'long int', but argument 8 has type 'unsigned int' [-Werror=format]
Attachments
patch (1.38 KB, patch)
2013-12-05 02:55 PST, Krzysztof Czech
eflews.bot: commit-queue-
patch (1.40 KB, patch)
2013-12-05 04:57 PST, Krzysztof Czech
no flags
Krzysztof Czech
Comment 1 2013-12-05 02:55:59 PST
WebKit Commit Bot
Comment 2 2013-12-05 02:58:10 PST
Attachment 218496 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp', '--commit-queue']" exit_code: 1 ERROR: Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943: Comma should be at the beggining of the line in a member initialization list. [whitespace/init] [4] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Krzysztof Czech
Comment 3 2013-12-05 03:03:59 PST
Changing format specifier from %ld to %d
EFL EWS Bot
Comment 4 2013-12-05 03:11:24 PST
EFL EWS Bot
Comment 5 2013-12-05 03:48:23 PST
Nick Diego Yamane (diegoyam)
Comment 6 2013-12-05 04:25:03 PST
/mnt/eflews/webkit/WebKit/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: In member function 'void StreamingClient::handleDataReceived(const char*, int)': /mnt/eflews/webkit/WebKit/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943:483: error: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Werror=format] Looks like it should be %lu :)
Ryuan Choi
Comment 7 2013-12-05 04:34:36 PST
(In reply to comment #6) > /mnt/eflews/webkit/WebKit/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: In member function 'void StreamingClient::handleDataReceived(const char*, int)': > /mnt/eflews/webkit/WebKit/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943:483: error: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Werror=format] > > Looks like it should be %lu :) So, is static_cast<unsigned long>(length) only the solution ?
Krzysztof Czech
Comment 8 2013-12-05 04:53:46 PST
(In reply to comment #7) > (In reply to comment #6) > > /mnt/eflews/webkit/WebKit/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: In member function 'void StreamingClient::handleDataReceived(const char*, int)': > > /mnt/eflews/webkit/WebKit/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943:483: error: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Werror=format] > > > > Looks like it should be %lu :) > > So, is static_cast<unsigned long>(length) only the solution ? What about signed values ?, maybe static_cast<long>(length)
Krzysztof Czech
Comment 9 2013-12-05 04:57:34 PST
WebKit Commit Bot
Comment 10 2013-12-05 04:58:45 PST
Attachment 218502 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp', '--commit-queue']" exit_code: 1 ERROR: Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:943: Comma should be at the beggining of the line in a member initialization list. [whitespace/init] [4] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Philippe Normand
Comment 11 2013-12-05 05:23:15 PST
*** Bug 125298 has been marked as a duplicate of this bug. ***
Laszlo Vidacs
Comment 12 2013-12-05 05:40:45 PST
A possible solution is submitted to https://bugs.webkit.org/show_bug.cgi?id=125298 Unsigned int does not fit in long int, so the common type for both values could be long long int. Could you take a look at that patch?
Csaba Osztrogonác
Comment 13 2013-12-05 14:42:02 PST
Mark this one as duplicate, because the other bug contains the proper fix. *** This bug has been marked as a duplicate of bug 125298 ***
Note You need to log in before you can comment on or make changes to this bug.