[torqueusers] COMPILER WARNINGS
"Mgr. Šimon Tóth"
SimonT at mail.muni.cz
Tue Jun 8 05:48:58 MDT 2010
>> its saying like
>> cc1:warnings being treated as errors
>> error: this decimal constant is unsigned only in ISO C90
>> make:*** [filename.o] Error1
>> make: *** 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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3366 bytes
Desc: S/MIME Cryptographic Signature
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20100608/02f9299b/attachment-0001.bin
More information about the torqueusers