When adding the return -1 to prevent warnings on some compilers, others
authorDaniel Stenberg <daniel@haxx.se>
Wed, 23 Jun 2004 06:17:17 +0000 (06:17 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Jun 2004 06:17:17 +0000 (06:17 +0000)
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

index c35615227882751d2b18a3b0e363b87821e2ce68..2ea8948385230f330b967ab574910cee9a843782 100644 (file)
@@ -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;