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

Commitcbb3e1c

Browse files
committed
Tweak new PQExpBufferBroken macro to suppress warnings from pickier
versions of gcc.
1 parentba34215 commitcbb3e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/interfaces/libpq/pqexpbuffer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
1919
* Portions Copyright (c) 1994, Regents of the University of California
2020
*
21-
* $PostgreSQL: pgsql/src/interfaces/libpq/pqexpbuffer.h,v 1.20 2008/11/2600:26:23 tgl Exp $
21+
* $PostgreSQL: pgsql/src/interfaces/libpq/pqexpbuffer.h,v 1.21 2008/11/2616:23:11 tgl Exp $
2222
*
2323
*-------------------------------------------------------------------------
2424
*/
@@ -57,7 +57,7 @@ typedef PQExpBufferData *PQExpBuffer;
5757
*------------------------
5858
*/
5959
#definePQExpBufferBroken(str) \
60-
(!(str) || (str)->maxlen == 0)
60+
((str) == NULL || (str)->maxlen == 0)
6161

6262
/*------------------------
6363
* Initial size of the data buffer in a PQExpBuffer.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp