warning: comparison of array 'hd->buf' equal to a null pointer is always false
Closed, ResolvedPublic

Description

libtool: compile: /usr/local/bin/clang -DHAVE_CONFIG_H -I. -I.. -I../src
-I../src -fsanitize=address -fsanitize=undefined -I/usr/local/include -g3 -O1
-fsanitize=address -fsanitize=undefined -fvisibility=hidden -Wall -MT
hash-common.lo -MD -MP -MF .deps/hash-common.Tpo -c hash-common.c -o hash-common.o
hash-common.c:109:11: warning: comparison of array 'hd->buf' equal to a null

    pointer is always false [-Wtautological-pointer-compare]
if (hd->buf == NULL || hd->bwrite == NULL)
    ~~~~^~~    ~~~~

1 warning generated.

Details

Version
1.6.3
JW set Version to 1.6.3.
JW added a subscriber: JW.
werner closed this task as Resolved.
werner claimed this task.

No c+p of warnings please! Use gnupg-devel for such things.