Skip to content

Commit 7e97b41

Browse files
committed
Remove compiler warning by casting SNPRINTF() call to void.
Report from Gevik Babakhani.
1 parent 524d65d commit 7e97b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/inet_net_ntop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
1515
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
*
17-
* $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_ntop.c,v 1.21 2005/10/15 02:49:28 momjian Exp $
17+
* $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_ntop.c,v 1.22 2006/04/24 19:51:13 momjian Exp $
1818
*/
1919

2020
#if defined(LIBC_SCCS) && !defined(lint)
@@ -289,7 +289,7 @@ inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size)
289289
}
290290
}
291291
/* Format CIDR /width. */
292-
SPRINTF((cp, "/%u", bits));
292+
(void) SPRINTF((cp, "/%u", bits));
293293
if (strlen(outbuf) + 1 > size)
294294
goto emsgsize;
295295
strcpy(dst, outbuf);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy