Use gnu_printf in attribute(()) to indicate GNU printf extension support.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 27 Oct 2020 02:35:09 +0000 (19:35 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 27 Oct 2020 02:35:09 +0000 (19:35 -0700)
commitff94a688e3a789eaa7ea20b41f27805d6c1970d2
tree819a059810b4b2d28725a437304c9283f4ebf4ef
parenta22f79456929fc7edc9d65234ab05f4966c86679
Use gnu_printf in attribute(()) to indicate GNU printf extension support.

By writing ordinary printf (or __printf__) inside __attribute__((format)),
one indicates that the system's typical format specifiers are supported.
This is OK for building for glibc, but it falls down for building for
mingw, since PSPP actually supports GNU format specifiers there via gnulib.
By writing gnu_printf instead, we avoid some incorrect warnings on mingw.
src/libpspp/compiler.h
src/output/pivot-table.h