You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc emits a bunch of warnings under -Wall for functions that have
declared that parameter 'n' is never going to be NULL, and then have the
temerity to make sure that that is true.
The problem is that we have many macros that are generalized enough to
handle the case where the parameter is NULL. It just happens that
sometimes they get called as well from code where it is known to be not
NULL. We could write additional macros that are known to take a
non-NULL parameter and don't do the test. The existing macros would be
rewritten to just call the new ones after checking for non-NULL.
But that would complicate our code, and a main point of compilers doing
optimization is to figure out and remove impossible cases, without the
programmers having to be concerned with that.
Just turn off these warnings
0 commit comments