Bug 67778

Summary: [Qt] Build fails with strict compiler
Product: WebKit Reporter: Andras Becsi <abecsi>
Component: Tools / TestsAssignee: Andras Becsi <abecsi>
Status: RESOLVED FIXED    
Severity: Normal CC: jturcotte, kbr, kenneth, ossy, webkit.review.bot
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: Linux   
Bug Depends on:    
Bug Blocks: 43191    
Attachments:
Description Flags
proposed fix none

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.