GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — GH-131296: fix clang-cl warnings on Windows in blake2module.c by chris-eibl · Pull Request #131299 · python/cpython Conversation
|
| edx7 = info7[3]; | ||
| #else | ||
| #endif | ||
| (void) eax1; (void) ebx1; (void) ecx1; (void) edx1; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LOL... definitely fighting against the compiler's idea of best practices here using useless no-op statements as a way to work around it. i wish we could disable a specific warning for a whole block of code. i feel like a future compiler will notice that these are useless and stop considering them a "use".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It was just the least minimal change to silence the warning :)
Luckily, I think we'll never have to fear that this will ever need a change: that (void) pattern is adapted by all known compilers for ages - and I think this will stay.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we would have used (void) ... in the elif branch but it would be an overkill for foolish consistency.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| (void) eax1; (void) ebx1; (void) ecx1; (void) edx1; | ||
| (void) eax7; (void) ebx7; (void) ecx7; (void) edx7; | ||
| #endif | ||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the double blank lines L98/L99 please? TiA
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh it was merged :') |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ython#131299) work around unimportant clang-cl warnings in blake2module.c
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.