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

Commit9959abb

Browse files
committed
Define Assert() et al to ((void)0) to avoid pedantic warnings.
gcc's -Wempty-body warns about the current usage when compilingpostgres without --enable-cassert.
1 parent5b51683 commit9959abb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/include/c.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,12 +578,12 @@ typedef NameData *Name;
578578
*/
579579
#ifndefUSE_ASSERT_CHECKING
580580

581-
#defineAssert(condition)
581+
#defineAssert(condition)((void)true)
582582
#defineAssertMacro(condition)((void)true)
583-
#defineAssertArg(condition)
584-
#defineAssertState(condition)
583+
#defineAssertArg(condition)((void)true)
584+
#defineAssertState(condition)((void)true)
585585
#defineAssertPointerAlignment(ptr,bndr)((void)true)
586-
#defineTrap(condition,errorType)
586+
#defineTrap(condition,errorType)((void)true)
587587
#defineTrapMacro(condition,errorType) (true)
588588

589589
#elif defined(FRONTEND)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp