From 2ed524f07ed8a42208be28c2407e104540ef01be Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 23 Jun 2004 06:17:17 +0000 Subject: 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! --- lib/getdate.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3