|
|
|
|
|
by NotPaidToPost
2552 days ago
|
|
> It's a warning not an error. Many build environments are set to treat all warnings as errors. The point is that 2^32 is a perfectly compliant C expression that is neither misleading nor ambiguous, and that also won't create any variable overflow. It uses ^ exactly as intended. Why should the compiler complain? Why should I get a warning/error when following the spec to the letter? |
|
[1] https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
[2] https://clang.llvm.org/docs/DiagnosticsReference.html