Bug 71960 - Build error: MiniBrowser/mac/BrowserWindowController.m:612:9: error: excess elements in struct initializer [-Werror,2] didDetectXSSForFrame,
Summary: Build error: MiniBrowser/mac/BrowserWindowController.m:612:9: error: excess e...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac Unspecified
: P2 Normal
Assignee: Thomas Sepez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 14:44 PST by Drew Yao
Modified: 2011-11-10 13:20 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Drew Yao 2011-11-09 14:44:36 PST
I'm building trunk, r99760, with build-webkit --debug.

CompileC /Volumes/data_apps/OpenSource/WebKitBuild/MiniBrowser.build/Debug/MiniBrowser.build/Objects-normal/x86_64/BrowserWindowController.o mac/BrowserWindowController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Volumes/data_apps/OpenSource/Tools/MiniBrowser
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -std=gnu99 -Wno-trigraphs -fpascal-strings -Os -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -fasm-blocks -Wprotocol -Wno-deprecated-declarations -mmacosx-version-min=10.8 -gdwarf-2 -fvisibility=hidden -Wno-conversion -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -I/Volumes/data_apps/OpenSource/WebKitBuild/MiniBrowser.build/Debug/MiniBrowser.build/MiniBrowser.hmap -I/Volumes/data_apps/OpenSource/WebKitBuild/Debug/include -I/Volumes/data_apps/OpenSource/WebKitBuild/MiniBrowser.build/Debug/MiniBrowser.build/DerivedSources/x86_64 -I/Volumes/data_apps/OpenSource/WebKitBuild/MiniBrowser.build/Debug/MiniBrowser.build/DerivedSources -Wall -W -Wno-unused-parameter -F/Volumes/data_apps/OpenSource/WebKitBuild/Debug -include /var/folders/6q/h8zm8nw900b6g9_klnmngm9c0000z8/C/com.apple.Xcode.1000/SharedPrecompiledHeaders/MiniBrowser_Prefix-ajbcgmcqdwktwlexxqopxvzdxzjx/MiniBrowser_Prefix.pch -MMD -MT dependencies -MF /Volumes/data_apps/OpenSource/WebKitBuild/MiniBrowser.build/Debug/MiniBrowser.build/Objects-normal/x86_64/BrowserWindowController.d -c /Volumes/data_apps/OpenSource/Tools/MiniBrowser/mac/BrowserWindowController.m -o /Volumes/data_apps/OpenSource/WebKitBuild/MiniBrowser.build/Debug/MiniBrowser.build/Objects-normal/x86_64/BrowserWindowController.o
/Volumes/data_apps/OpenSource/Tools/MiniBrowser/mac/BrowserWindowController.m:612:9:{612:9-612:29}: error: excess elements in struct initializer [-Werror,2]
         didDetectXSSForFrame,
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
Comment 1 Thomas Sepez 2011-11-10 12:27:11 PST
Looking.
Comment 2 Daniel Bates 2011-11-10 12:28:49 PST
(In reply to comment #0)
> I'm building trunk, r99760, with build-webkit --debug.
>[...]
>          didDetectXSSForFrame,
>          ^~~~~~~~~~~~~~~~~~~~
> 1 error generated.

I encountered this error. I was able to resolve this issue performing a clean build. It's probably sufficient to rebuild just WebKit2 so that it picks up the updated WKPage.h.
Comment 3 Thomas Sepez 2011-11-10 12:44:22 PST
WKPage.h does appear to declare this correctly.  Let me know if this is other than a build consistency issue.
Comment 4 Drew Yao 2011-11-10 13:20:40 PST
Ah, yes after doing a clean build, it builds properly.