<div dir="ltr">Hi,<div><br></div><div><a href="http://trac.webkit.org/changeset/155643">http://trac.webkit.org/changeset/155643</a> broke Qt build with an error saying:</div><div><br></div><div><div>Source/JavaScriptCore/dfg/DFGGPRInfo.h:169:5: error: control reaches end of non-void function [-Werror=return-type] </div>
<div>cc1plus: all warnings being treated as errors</div></div><div><br></div><div>because of the following code:</div><div><br></div><div><div>GPRReg gpr(WhichValueWord which) const</div><div>{</div><div> switch (which) {</div>
<div> case TagWord:</div><div> return tagGPR();</div><div> case PayloadWord:</div><div> return payloadGPR();</div><div> }</div><div>}</div><div><br></div><div>But the code works just fine as is because WhichValueWord only takes two values (TagWord and PayloadWord) and they're all handled in the switch statement.</div>
<div><br></div><div>Can we disable this warning so that we don't have to add a bogus code like the one I had to add in <a href="http://trac.webkit.org/changeset/155649/trunk/Source/JavaScriptCore/dfg/DFGGPRInfo.h">http://trac.webkit.org/changeset/155649/trunk/Source/JavaScriptCore/dfg/DFGGPRInfo.h</a> ?</div>
<div><br></div><div><div>- R. Niwa</div><div><br></div>
</div></div></div>