aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgcrypto
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2011-09-10 23:12:46 +0300
committerPeter Eisentraut <peter_e@gmx.net>2011-09-10 23:12:46 +0300
commit52ce20589a8bac4eccaea043b1fe283daaf4f9e3 (patch)
tree2e3bdabd95a1db624ec982f5cd4634a7f540c858 /contrib/pgcrypto
parent96a8aed4cb66b9a23e5b566ad549cd0c5eac5a74 (diff)
downloadpostgresql-52ce20589a8bac4eccaea043b1fe283daaf4f9e3.tar.gz
postgresql-52ce20589a8bac4eccaea043b1fe283daaf4f9e3.zip
Add missing format attributes
Add __attribute__ decorations for printf format checking to the places that were missing them. Fix the resulting warnings. Add -Wmissing-format-attribute to the standard set of warnings for GCC, so these don't happen again. The warning fixes here are relatively harmless. The one serious problem discovered by this was already committed earlier in cf15fb5cabfbc71e07be23cfbc813daee6c5014f.
Diffstat (limited to 'contrib/pgcrypto')
-rw-r--r--contrib/pgcrypto/px.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pgcrypto/px.h b/contrib/pgcrypto/px.h
index 9709f9bdb60..610b7fad789 100644
--- a/contrib/pgcrypto/px.h
+++ b/contrib/pgcrypto/px.h
@@ -204,7 +204,8 @@ const char *px_resolve_alias(const PX_Alias *aliases, const char *name);
void px_set_debug_handler(void (*handler) (const char *));
#ifdef PX_DEBUG
-void px_debug(const char *fmt,...);
+void px_debug(const char *fmt, ...)
+ __attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
#else
#define px_debug(...)
#endif