From 2ed524f07ed8a42208be28c2407e104540ef01be Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 23 Jun 2004 06:17:17 +0000
Subject: [PATCH] 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 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;
-- 
GitLab