psfex icon indicating copy to clipboard operation
psfex copied to clipboard

warning: address of array 'key->printf' will always evaluate to 'true'

Open ryandesign opened this issue 1 year ago • 0 comments

These warnings appear when building 3.24.2:

fitswrite.c:455:34: warning: address of array 'key->printf' will always evaluate to 'true' [-Wpointer-bool-conversion]
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
                            ~~~~~^~~~~~~
fitswrite.c:541:34: warning: address of array 'key->printf' will always evaluate to 'true' [-Wpointer-bool-conversion]
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
                            ~~~~~^~~~~~~
2 warnings generated.

ryandesign avatar Jan 02 '24 07:01 ryandesign