From: Sandro Santilli Date: Tue, 17 Feb 2015 11:22:04 +0000 (+0000) Subject: Fix warning about unchecked return code X-Git-Tag: 2.2.0rc1~670 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=267dcbd32f73f0446f5b92bb5d3a24c5ea306956;p=postgis Fix warning about unchecked return code The code path is actually never hit as far as I can tell git-svn-id: http://svn.osgeo.org/postgis/trunk@13227 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/getopt.c b/loader/getopt.c index 7c1145def..cf12879ed 100644 --- a/loader/getopt.c +++ b/loader/getopt.c @@ -32,11 +32,7 @@ #define ERR(s, c)\ if(pgis_opterr){\ - char errbuf[2];\ - errbuf[0] = (char)c; errbuf[1] = '\n';\ - (void) write(2, argv[0], (unsigned)strlen(argv[0]));\ - (void) write(2, s, (unsigned)strlen(s));\ - (void) write(2, errbuf, 2);\ + fprintf(stderr, "%s%s%c\n", argv[0], s, c);\ } int pgis_opterr = 1;