Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b6bb9b

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 postgreswith gcc 4.8/9. As6550b90 shows, it's useful to be able to use thatoption routinely.Without asserts there's many more warnings, but that's food foranother commit.
1 parentf18cad9 commit9b6bb9b

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-
#defineMETA_FREE(x)/* pfree((x)) */
198+
#defineMETA_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)

[8]ページ先頭

©2009-2025 Movatter.jp