git: Fix gcc80 -Wnonnull-compare.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Jan 22 04:27:16 PST 2018


commit 6329e2f68af73662a1960240675e796ab586bcb1
Author: Sascha Wildner <saw at online.de>
Date:   Mon Jan 22 13:26:58 2018 +0100

    Fix gcc80 -Wnonnull-compare.
    
    For arguments that are checked against NULL in the function, we don't
    want a nonnull attribute, because that will cause the NULL check to be
    optimized away in higher -O levels and it will also trigger a
    -Wnonnull-compare warning.
    
    See also 0f037c78525bfb7df49de8338826e15137859b1d commit message.

Summary of changes:
 contrib/openpam/include/security/openpam.h  |  6 ++----
 contrib/openpam/include/security/pam_appl.h | 21 ++++++++-------------
 games/hack/hack.h                           |  2 +-
 include/err.h                               |  2 +-
 4 files changed, 12 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6329e2f68af73662a1960240675e796ab586bcb1


-- 
DragonFly BSD source repository



More information about the Commits mailing list