[llvm-commits] [llvm] r51115 - in /llvm/trunk/lib/CodeGen/SelectionDAG: ScheduleDAG.cpp ScheduleDAGRRList.cpp SelectionDAGISel.cpp

Chris Lattner clattner at apple.com
Wed May 14 13:55:03 PDT 2008


On May 14, 2008, at 1:51 PM, Dale Johannesen wrote:

>
> On May 14, 2008, at 1:43 PM, Chris Lattner wrote:
>
>> On May 14, 2008, at 1:07 PM, Evan Cheng wrote:
>>> URL: http://llvm.org/viewvc/llvm-project?rev=51115&view=rev
>>> Log:
>>> Silence some compiler warnings.
>>
>> This introduces new compiler warnings "isNew computation has no side
>> effects".  How about "isNew = isNew;" ?  We use this idiom in other
>> places,
>
>
> gcc doesn't warn about that, but it should.
>
> How about
> (void)isNew;

We use "isNew = isNew;" elsewhere... it seems pretty safe and doesn't  
use gnu extensions.

-Chris

>
>
> or __attribute__((used))
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list