On 2026-07-04 01:53, Paul Eggert via tz wrote:
Suppose you change "+" to "0+", or to "- -". Does that pacify MSVC?

I asked Gemini, and it replied that these hacks probably won't work. It also said that the bug with MSVC's enum warnings (C5287) being generated for benign expressions like +X < +Y has been reported to Microsoft. A Google search suggests that a fix is on the way, giving this URL:

https://developercommunity.visualstudio.com/t/False-positive-C5287:-operands-are-diff/10915265?sort=newest

... a URL that I don't have access to read, unfortunately.

Gemini also suggested using the MSVC compiler switch /wd5287 to work around the compiler bug in the meantime. Please give that a try, or perhaps the URL's target can suggest other workarounds.

Reply via email to