|
Bugzilla – Full Text Bug Listing |
| Summary: | Wimax doesn't compile with gcc-3.4.x | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Faker Moatamri <faker.moatamri> |
| Component: | wimax | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | amine.ismail, faker.moatamri |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Remove the negative one values and replaced by ~0 | ||
|
Description
Faker Moatamri
2009-07-08 12:04:15 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. 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. 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.
|