From: Daniel Stenberg Date: Wed, 23 Jun 2004 06:17:17 +0000 (+0000) Subject: When adding the return -1 to prevent warnings on some compilers, others X-Git-Tag: curl-7_12_1~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ed524f07ed8a42208be28c2407e104540ef01be;p=thirdparty%2Fcurl.git When adding the return -1 to prevent warnings on some compilers, others started complaining since it won't be reached... So I removed the call to abort() and just return -1 instead. abort() was wrong to call anyway since this is a library! --- diff --git a/lib/getdate.y b/lib/getdate.y index c356152278..2ea8948385 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -722,7 +722,7 @@ ToHour (int Hours, MERIDIAN Meridian) Hours = 0; return Hours + 12; default: - abort (); + break; /* used to do abort() here */ } /* NOTREACHED - but make gcc happy! */ return -1;