aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-09-26 02:55:38 +0200
committerAndres Freund <andres@anarazel.de>2014-09-26 02:55:38 +0200
commit9b6bb9b47153e4bf6d23bef13165491ba440fc23 (patch)
tree0fe9e506e68f0319c2cfb2c3362178af5b28ea89
parentf18cad944911f05ad2e876af67362e28584b3c61 (diff)
downloadpostgresql-9b6bb9b47153e4bf6d23bef13165491ba440fc23.tar.gz
postgresql-9b6bb9b47153e4bf6d23bef13165491ba440fc23.zip
Define META_FREE in a way that doesn't cause -Wempty-body warnings.
That get rids of the only -Wempty-body warning when compiling postgres with gcc 4.8/9. As 6550b901f shows, it's useful to be able to use that option routinely. Without asserts there's many more warnings, but that's food for another commit.
-rw-r--r--contrib/fuzzystrmatch/dmetaphone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fuzzystrmatch/dmetaphone.c b/contrib/fuzzystrmatch/dmetaphone.c
index 5001288bb64..c8f5f32fbbf 100644
--- a/contrib/fuzzystrmatch/dmetaphone.c
+++ b/contrib/fuzzystrmatch/dmetaphone.c
@@ -195,7 +195,7 @@ dmetaphone_alt(PG_FUNCTION_ARGS)
* in a case like this.
*/
-#define META_FREE(x) /* pfree((x)) */
+#define META_FREE(x) ((void)true) /* pfree((x)) */
#else /* not defined DMETAPHONE_MAIN */
/* use the standard malloc library when not running in PostgreSQL */