Comment

Comment by NotPaidToPost

> 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?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton