Content-Length: 260012 | pFad | http://github.com/postgrespro/postgres_cluster/commit/9b6bb9b47153e4bf6d23bef13165491ba440fc23

9A Define META_FREE in a way that doesn't cause -Wempty-body warnings. · postgrespro/postgres_cluster@9b6bb9b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/9b6bb9b47153e4bf6d23bef13165491ba440fc23

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy