[torqueusers] COMPILER WARNINGS

Glen Beane glen.beane at gmail.com
Tue Jun 8 06:49:22 MDT 2010


2010/6/8 "Mgr. Šimon Tóth" <SimonT at mail.muni.cz>:
>>> its saying like
>>> cc1:warnings being treated as errors
>>> error: this decimal constant is unsigned only in ISO C90
>>> make[1]:*** [filename.o] Error1
>>> make[1]: *** Leaving direvtory '/root/torque-2.4.6/src/resmom'
>>> make: *** [all-recursive] Error1
>>
>> this is a C programming question, not a TORQUE user question.  It
>> looks like you are assigning an integer constant to an unsigned int.
>> Try foo = (unsigned int)12345.
>
> Actually that's not the correct approach it should be:
> foo = 12345u;
>
> The 'u' suffix denotes the constant as unsigned.
>
> --
> Mgr. Šimon Tóth
>
>

You're right. Not enough caffeine before replying.


More information about the torqueusers mailing list