Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e331c60e
Commit
e331c60e
authored
Oct 18, 2011
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress remaining -Waddress warnings from recent gcc versions.
Still an exercise in satisfying pedants.
parent
aa90e148
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
src/bin/psql/psqlscan.l
src/bin/psql/psqlscan.l
+1
-1
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+2
-2
src/interfaces/libpq/pqexpbuffer.h
src/interfaces/libpq/pqexpbuffer.h
+8
-0
No files found.
src/bin/psql/psqlscan.l
View file @
e331c60e
...
@@ -1673,7 +1673,7 @@ evaluate_backtick(void)
...
@@ -1673,7 +1673,7 @@ evaluate_backtick(void)
error = true;
error = true;
}
}
if (PQExpBuffer
Broken(&
cmd_output))
if (PQExpBuffer
DataBroken(
cmd_output))
{
{
psql_error("%s: out of memory\n", cmd);
psql_error("%s: out of memory\n", cmd);
error = true;
error = true;
...
...
src/interfaces/libpq/fe-connect.c
View file @
e331c60e
...
@@ -829,7 +829,7 @@ PQconndefaults(void)
...
@@ -829,7 +829,7 @@ PQconndefaults(void)
PQconninfoOption
*
connOptions
;
PQconninfoOption
*
connOptions
;
initPQExpBuffer
(
&
errorBuf
);
initPQExpBuffer
(
&
errorBuf
);
if
(
PQExpBuffer
Broken
(
&
errorBuf
))
if
(
PQExpBuffer
DataBroken
(
errorBuf
))
return
NULL
;
/* out of memory already :-( */
return
NULL
;
/* out of memory already :-( */
connOptions
=
conninfo_parse
(
""
,
&
errorBuf
,
true
);
connOptions
=
conninfo_parse
(
""
,
&
errorBuf
,
true
);
termPQExpBuffer
(
&
errorBuf
);
termPQExpBuffer
(
&
errorBuf
);
...
@@ -3967,7 +3967,7 @@ PQconninfoParse(const char *conninfo, char **errmsg)
...
@@ -3967,7 +3967,7 @@ PQconninfoParse(const char *conninfo, char **errmsg)
if
(
errmsg
)
if
(
errmsg
)
*
errmsg
=
NULL
;
/* default */
*
errmsg
=
NULL
;
/* default */
initPQExpBuffer
(
&
errorBuf
);
initPQExpBuffer
(
&
errorBuf
);
if
(
PQExpBuffer
Broken
(
&
errorBuf
))
if
(
PQExpBuffer
DataBroken
(
errorBuf
))
return
NULL
;
/* out of memory already :-( */
return
NULL
;
/* out of memory already :-( */
connOptions
=
conninfo_parse
(
conninfo
,
&
errorBuf
,
false
);
connOptions
=
conninfo_parse
(
conninfo
,
&
errorBuf
,
false
);
if
(
connOptions
==
NULL
&&
errmsg
)
if
(
connOptions
==
NULL
&&
errmsg
)
...
...
src/interfaces/libpq/pqexpbuffer.h
View file @
e331c60e
...
@@ -59,6 +59,14 @@ typedef PQExpBufferData *PQExpBuffer;
...
@@ -59,6 +59,14 @@ typedef PQExpBufferData *PQExpBuffer;
#define PQExpBufferBroken(str) \
#define PQExpBufferBroken(str) \
((str) == NULL || (str)->maxlen == 0)
((str) == NULL || (str)->maxlen == 0)
/*------------------------
* Same, but for use when using a static or local PQExpBufferData struct.
* For that, a null-pointer test is useless and may draw compiler warnings.
*------------------------
*/
#define PQExpBufferDataBroken(buf) \
((buf).maxlen == 0)
/*------------------------
/*------------------------
* Initial size of the data buffer in a PQExpBuffer.
* Initial size of the data buffer in a PQExpBuffer.
* NB: this must be large enough to hold error messages that might
* NB: this must be large enough to hold error messages that might
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment