Replies: 3 comments 2 replies
-
@acvictor I agree. It would be nice to enable compiler to highlight code problems as much as possible. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thank you @acvictor for looking into this. For historical context, I suppose we ended up adding these flags because of the dependencies we compile (we used to pass the exact same compiler flags to compile dependencies and vendored code), but this is better controlled nowadays. Thanks for the clean up. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ignoring some compiler warnings can introduce significant correctness, reliability, and security risks. I recently spent days debugging a weird crash with someone from my team at Microsoft who figured out that the cause was a
bool
function that was not returning anything although the crash log seemed to indicate an issue with memory freeing. I've since checked in one PR to remove -Wno-return-type and have another one up for -Wno-stringop-overflow, -Wno-stringop-overread. We should methodically review the compiler flags for Velox and Gluten and attempt to reduce the number of disabled warnings. I would like to take a stab at some other 'serious' ones on the list. For GNU the entire set includes -@mbasmanova what do you think?
Beta Was this translation helpful? Give feedback.
All reactions