Skip to content

Commit 9b6bb9b

Browse files
committed
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 6550b90 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.
1 parent f18cad9 commit 9b6bb9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/fuzzystrmatch/dmetaphone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ dmetaphone_alt(PG_FUNCTION_ARGS)
195195
* in a case like this.
196196
*/
197197

198-
#define META_FREE(x) /* pfree((x)) */
198+
#define META_FREE(x) ((void)true) /* pfree((x)) */
199199
#else /* not defined DMETAPHONE_MAIN */
200200

201201
/* use the standard malloc library when not running in PostgreSQL */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy