OSDN Git Service

Improve __nonnull__ usage on clang
authorGabriel Majeri <gabriel.majeri6@gmail.com>
Sun, 24 Sep 2017 11:24:08 +0000 (14:24 +0300)
committerPeter Jones <pjones@redhat.com>
Mon, 25 Sep 2017 15:45:14 +0000 (11:45 -0400)
commit907d0d08458db9ecb8414a8264cfcd7490428f76
tree12ff303eb47bf8a3c4e63fa0937245ba0d9b0a59
parent42978fb66ebd5a022348d748cf396dc911d71f70
Improve __nonnull__ usage on clang

On gcc, we use the pragma "-Wnonnull-compare" to avoid GCC's complaints
of checking for NULL on a function marked with __nonnull__.  This adds
clang's -Wpointer-bool-conversion to avoid the same kind of thing there.
src/error.c
src/include/efivar/efivar-dp.h