projects
/
users
/
heikki
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f18cad9
)
Define META_FREE in a way that doesn't cause -Wempty-body warnings.
author
Andres Freund
<
[email protected]
>
Fri, 26 Sep 2014 00:55:38 +0000
(
02:55
+0200)
committer
Andres Freund
<
[email protected]
>
Fri, 26 Sep 2014 00:55:38 +0000
(
02:55
+0200)
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.
contrib/fuzzystrmatch/dmetaphone.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/fuzzystrmatch/dmetaphone.c
b/contrib/fuzzystrmatch/dmetaphone.c
index 5001288bb6424416c8c0b2fc5ea5d49b4aeeb22f..c8f5f32fbbfc4ab9f22cc0a2829aba6deddfe988 100644
(file)
--- 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 */