[lldb-dev] An other small error

Greg Clayton gclayton at apple.com
Tue Jul 6 09:17:32 PDT 2010


Revision: 107671
Date: Tuesday, July 6, 2010 9:11:44 AM PT

Jean-Daniel Dupas patch that fixes a bad if statement with assignment.

Changes:
	M /lldb/trunk/source/Commands/CommandCompletions.cpp


I also updated the Xcode projects to include "-Wparentheses" in the CFLAGS:

Sending        lldb.xcodeproj/project.pbxproj
Sending        tools/debugserver/debugserver.xcodeproj/project.pbxproj
Transmitting file data ..
Committed revision 107672.


On Jul 6, 2010, at 9:07 AM, Jean-Daniel Dupas wrote:

> In CommandCompletion.h:243
> 
> if (resolved_username_len = 0 || resolved_username_len >= sizeof (containing_part))
> 
> should be 
> 
> if (resolved_username_len == 0 || resolved_username_len >= sizeof (containing_part))
> 
> 
> That's why you should compile with -Wparenthese ;-)
> 
> 
> <hum.patch>
> 
> 
> -- Jean-Daniel
> 
> 
> 
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev





More information about the lldb-dev mailing list