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
9563afaf
Commit
9563afaf
authored
Apr 23, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress some 'variable may be used uninitialized' warnings from gcc 4.4.
parent
b9e9775e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/backend/libpq/ip.c
src/backend/libpq/ip.c
+3
-1
No files found.
src/backend/libpq/ip.c
View file @
9563afaf
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.4
4 2009/01/23 19:58:06
tgl Exp $
* $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.4
5 2009/04/23 23:25:13
tgl Exp $
*
*
* This file and the IPV6 implementation were initially provided by
* This file and the IPV6 implementation were initially provided by
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
...
@@ -394,6 +394,7 @@ pg_sockaddr_cidr_mask(struct sockaddr_storage * mask, char *numbits, int family)
...
@@ -394,6 +394,7 @@ pg_sockaddr_cidr_mask(struct sockaddr_storage * mask, char *numbits, int family)
if
(
bits
<
0
||
bits
>
32
)
if
(
bits
<
0
||
bits
>
32
)
return
-
1
;
return
-
1
;
memset
(
&
mask4
,
0
,
sizeof
(
mask4
));
/* avoid "x << 32", which is not portable */
/* avoid "x << 32", which is not portable */
if
(
bits
>
0
)
if
(
bits
>
0
)
maskl
=
(
0xffffffffUL
<<
(
32
-
(
int
)
bits
))
maskl
=
(
0xffffffffUL
<<
(
32
-
(
int
)
bits
))
...
@@ -413,6 +414,7 @@ pg_sockaddr_cidr_mask(struct sockaddr_storage * mask, char *numbits, int family)
...
@@ -413,6 +414,7 @@ pg_sockaddr_cidr_mask(struct sockaddr_storage * mask, char *numbits, int family)
if
(
bits
<
0
||
bits
>
128
)
if
(
bits
<
0
||
bits
>
128
)
return
-
1
;
return
-
1
;
memset
(
&
mask6
,
0
,
sizeof
(
mask6
));
for
(
i
=
0
;
i
<
16
;
i
++
)
for
(
i
=
0
;
i
<
16
;
i
++
)
{
{
if
(
bits
<=
0
)
if
(
bits
<=
0
)
...
...
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