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: pre-aifix~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ed524f07ed8a42208be28c2407e104540ef01be;p=curl 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 c35615227..2ea894838 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;