<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>55576</bug_id>
          
          <creation_ts>2011-03-02 07:25:29 -0800</creation_ts>
          <short_desc>Compilation fails because of stricter warning(s) with GCC 4.5 compiler</short_desc>
          <delta_ts>2011-04-05 03:13:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>57822</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christoph">christoph</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>barraclough</cc>
    
    <cc>kbalazs</cc>
    
    <cc>msaboff</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>360782</commentid>
    <comment_count>0</comment_count>
    <who name="Christoph">christoph</who>
    <bug_when>2011-03-02 07:25:29 -0800</bug_when>
    <thetext>Trying to build svn r79936 via &quot;build-webkit --qt&quot;, I get the following compilation error:

Source/JavaScriptCore/yarr/YarrParser.h:454:64: error: ‘characterClassConstructor.JSC::Yarr::Parser&lt;JSC::Yarr::SyntaxChecker&gt;::CharacterClassParserDelegate::m_character’ may be used uninitialized in this function

As discussed with Ossy on #webkit, it might be caused by stricter warnings of the GCC 4.5 compiler. I am using the openSUSE 11.3 compiler, which is &quot;gcc (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292]&quot;.

Full error is below:

make[1]: Entering directory `/local/build/webkit/Release/JavaScriptCore&apos;
g++ -c -pipe -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Werror -fno-stack-protector -O3 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -D_REENTRANT -DBUILDING_QT__=1 -DNDEBUG -DXP_UNIX -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I../../../../Qt4/qt-4.7/mkspecs/linux-g++ -I../../../../git/Qt/webkit/Source/JavaScriptCore -I../../../../Qt4/qt-4.7/include/QtCore -I../../../../Qt4/qt-4.7/include -I../../../../git/Qt/webkit/Source/JavaScriptCore -I../../../../git/Qt/webkit/Source -I../../../../git/Qt/webkit/Source/ThirdParty -I../../../../git/Qt/webkit/Source/JavaScriptCore/assembler -I../../../../git/Qt/webkit/Source/JavaScriptCore/bytecode -I../../../../git/Qt/webkit/Source/JavaScriptCore/bytecompiler -I../../../../git/Qt/webkit/Source/JavaScriptCore/collector/handles -I../../../../git/Qt/webkit/Source/JavaScriptCore/debugger -I../../../../git/Qt/webkit/Source/JavaScriptCore/interpreter -I../../../../git/Qt/webkit/Source/JavaScriptCore/jit -I../../../../git/Qt/webkit/Source/JavaScriptCore/parser -I../../../../git/Qt/webkit/Source/JavaScriptCore/profiler -I../../../../git/Qt/webkit/Source/JavaScriptCore/runtime -I../../../../git/Qt/webkit/Source/JavaScriptCore/wtf -I../../../../git/Qt/webkit/Source/JavaScriptCore/wtf/gobject -I/local/git/Qt/webkit/Source/JavaScriptCore/wtf/symbian -I../../../../git/Qt/webkit/Source/JavaScriptCore/wtf/unicode -I../../../../git/Qt/webkit/Source/JavaScriptCore/yarr -I../../../../git/Qt/webkit/Source/JavaScriptCore/API -I../../../../git/Qt/webkit/Source/JavaScriptCore/ForwardingHeaders -Igenerated -I../include/QtWebKit -I../include -I. -I../../../../git/Qt/webkit/Source/JavaScriptCore -I. -o obj/release/YarrSyntaxChecker.o ../../../../git/Qt/webkit/Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp
cc1plus: warnings being treated as errors
In file included from ../../../../git/Qt/webkit/Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:29:0:
../../../../git/Qt/webkit/Source/JavaScriptCore/yarr/YarrParser.h: In member function ‘void JSC::Yarr::Parser&lt;Delegate&gt;::parseTokens() [with Delegate = JSC::Yarr::SyntaxChecker]’:
../../../../git/Qt/webkit/Source/JavaScriptCore/yarr/YarrParser.h:454:64: error: ‘characterClassConstructor.JSC::Yarr::Parser&lt;JSC::Yarr::SyntaxChecker&gt;::CharacterClassParserDelegate::m_character’ may be used uninitialized in this function
../../../../git/Qt/webkit/Source/JavaScriptCore/yarr/YarrParser.h:454:64: note: ‘characterClassConstructor.JSC::Yarr::Parser&lt;JSC::Yarr::SyntaxChecker&gt;::CharacterClassParserDelegate::m_character’ was declared here
make[1]: *** [obj/release/YarrSyntaxChecker.o] Fehler 1
make[1]: Leaving directory `/local/build/webkit/Release/JavaScriptCore&apos;
make: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Fehler 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>360785</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-03-02 07:31:00 -0800</bug_when>
    <thetext>I think we should initialize m_character in constructor to make gcc happier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379396</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-04-05 02:21:16 -0700</bug_when>
    <thetext>*** Bug 57822 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379415</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-04-05 03:13:37 -0700</bug_when>
    <thetext>Mark as duplicate, because there is a proposed patch on the other bug.

*** This bug has been marked as a duplicate of bug 57822 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>