Bug 630 - Wimax doesn't compile with gcc-3.4.x
Wimax doesn't compile with gcc-3.4.x
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wimax
pre-release
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-08 12:04 UTC by Faker Moatamri
Modified: 2009-08-07 03:30 UTC (History)
2 users (show)

See Also:


Attachments
Remove the negative one values and replaced by ~0 (1.57 KB, patch)
2009-07-08 12:19 UTC, Faker Moatamri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Faker Moatamri 2009-07-08 12:04:15 UTC
 
Comment 1 Faker Moatamri 2009-07-08 12:05:51 UTC
The error looks like this:
../src/devices/wimax/wimax-net-device.cc:49: warning: converting of negative value `-0x00000000000000001' to `uint8_t'
This is due to assigning a value -1 to an unsigned int.
Comment 2 Faker Moatamri 2009-07-08 12:13:32 UTC
Replaced the initial value of uint8_t = -1 by the negation of 0 which means initialvalue = ~0 (binary negation of 0) instead of initialvalue = -1 which shouldn't exist as it is an unsigned integer.
Comment 3 Faker Moatamri 2009-07-08 12:19:20 UTC
Created attachment 520 [details]
Remove the negative one values and replaced by ~0

Amine please take a look at the patch and push it if it is ok. Then after I will close the bug.