Re: [PATCH 2/3] rt-tests: Silence unused-but-set warning in rt-migrate-test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 21, 2012 at 3:44 PM, Darren Hart <dvhart@xxxxxxxxxxxxxxx> wrote:
>
>
> On 03/21/2012 07:05 AM, Steven Rostedt wrote:
>> On Tue, 2012-03-20 at 12:05 -0700, Darren Hart wrote:
>>
>>> diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c
>>> index 1963641..d2ac400 100644
>>> --- a/src/rt-migrate-test/rt-migrate-test.c
>>> +++ b/src/rt-migrate-test/rt-migrate-test.c
>>> @@ -532,7 +532,7 @@ int main (int argc, char **argv)
>>>      logdev_switch_set(1);
>>>
>>>      for (loop=0; loop < nr_runs; loop++) {
>>> -            unsigned long long end;
>>> +            unsigned long long __attribute__ ((unused)) end;
>>
>> I don't like this. It seems to be a gcc bug. What version of gcc is
>> this?
>>
>
> gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)
>

Yup, shows up on my F16 machine too, with a slightly different gcc version.
gcc --version
gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux