Bug 43698

Summary: Web Inspector: Fix warning in WebCore/inspector/InspectorDebuggerAgent.cpp
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: pfeldman, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 43191    
Attachments:
Description Flags
proposed fix none

Description Csaba Osztrogonác 2010-08-08 16:50:32 PDT
gcc warning:
../../../WebCore/inspector/InspectorDebuggerAgent.cpp:132: warning: suggest parentheses around assignment used as truth value

This warning introduced in http://trac.webkit.org/changeset/64846 .
Comment 1 Csaba Osztrogonác 2010-08-08 16:54:12 PDT
Created attachment 63852 [details]
proposed fix
Comment 2 Antonio Gomes 2010-08-08 19:34:08 PDT
Comment on attachment 63852 [details]
proposed fix

You can either do it this way, or make perform the assignment before the if statement (which I personally would had done.).

Either way is fine with me.
Comment 3 Csaba Osztrogonác 2010-08-08 22:43:57 PDT
Comment on attachment 63852 [details]
proposed fix

Clearing flags on attachment: 63852

Committed r64964: <http://trac.webkit.org/changeset/64964>
Comment 4 Csaba Osztrogonác 2010-08-08 22:44:05 PDT
All reviewed patches have been landed.  Closing bug.