Bug 67778 - [Qt] Build fails with strict compiler
Summary: [Qt] Build fails with strict compiler
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Linux
: P2 Normal
Assignee: Andras Becsi
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks: 43191
  Show dependency treegraph
 
Reported: 2011-09-08 06:33 PDT by Andras Becsi
Modified: 2011-09-08 06:51 PDT (History)
5 users (show)

See Also:


Attachments
proposed fix (3.19 KB, patch)
2011-09-08 06:42 PDT, Andras Becsi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andras Becsi 2011-09-08 06:33:49 PDT
compiler/glslang_lex.cpp: In function ‘int yylex(YYSTYPE*, yyscan_t)’:
compiler/glslang_lex.cpp:1693:5: error: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1plus: all warnings being treated as errors

make[1]: *** [obj/release/glslang_lex.o] Error 1
make[1]: *** Waiting for unfinished jobs....
../../../Source/WebCore/platform/graphics/TiledBackingStore.cpp: In member function ‘bool WebCore::TiledBackingStore::resizeEdgeTiles()’:
../../../Source/WebCore/platform/graphics/TiledBackingStore.cpp:343:13: error: variable ‘contentsRect’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

glslang_lex.cpp needs an update, and the unused variable needs to be removed.
Comment 1 Andras Becsi 2011-09-08 06:42:34 PDT
Created attachment 106729 [details]
proposed fix
Comment 2 WebKit Review Bot 2011-09-08 06:44:10 PDT
Attachment 106729 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/ThirdParty/ANGLE/ChangeLog', u'Sour..." exit_code: 1

Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:862:  Extra space before ( in function call  [whitespace/parens] [4]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:862:  Extra space before )  [whitespace/parens] [2]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:862:  yyget_column is incorrectly named. Don't use underscores in your identifier names.  [readability/naming] [4]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:864:  Missing space after ,  [whitespace/comma] [3]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:864:  Extra space before ( in function call  [whitespace/parens] [4]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:864:  Extra space before )  [whitespace/parens] [2]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:864:  yyset_column is incorrectly named. Don't use underscores in your identifier names.  [readability/naming] [4]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:864:  column_no is incorrectly named. Don't use underscores in your identifier names.  [readability/naming] [4]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:916:  Extra space after ( in function call  [whitespace/parens] [4]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:916:  Missing space inside { }.  [whitespace/braces] [5]
Source/ThirdParty/ANGLE/src/compiler/glslang_lex.cpp:927:  Tab found; better to use spaces  [whitespace/tab] [1]
Total errors found: 11 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Csaba Osztrogonác 2011-09-08 06:46:41 PDT
Comment on attachment 106729 [details]
proposed fix

r=me, but cq-, because commit queue doesn't like my name. :)
Comment 4 Andras Becsi 2011-09-08 06:48:45 PDT
Just for the record glslang_lex.cpp is a pre-generated file, that is why the style-bot fails.

(In reply to comment #2)
> Attachment 106729 [details] did not pass style-queue:
Comment 5 Andras Becsi 2011-09-08 06:51:05 PDT
Comment on attachment 106729 [details]
proposed fix

Clearing flags on attachment: 106729

Committed r94757: <http://trac.webkit.org/changeset/94757>
Comment 6 Andras Becsi 2011-09-08 06:51:13 PDT
All reviewed patches have been landed.  Closing bug.