Consistently use gcc's __attribute__((format)) to check sprintf-style
Tom Lane <tgl@sss.pgh.pa.us>
Consistently use gcc's __attribute__((format)) to check sprintf-style format strings wherever possible. Remarkably, this exercise didn't turn up any inconsistencies, but it seems a good idea for the future.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +3 −7 |
| src/bin/pg_dump/pg_backup.h | modified | +6 −3 |
| src/bin/psql/common.h | modified | +11 −16 |
| src/include/c.h | modified | +4 −4 |
| src/include/lib/stringinfo.h | modified | +4 −2 |
| src/include/postgres.h | modified | +5 −2 |
| src/interfaces/libpq/libpq-int.h | modified | +2 −5 |
| src/interfaces/libpq/pqexpbuffer.h | modified | +7 −3 |