diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-23 06:17:17 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-23 06:17:17 +0000 |
commit | 2ed524f07ed8a42208be28c2407e104540ef01be (patch) | |
tree | 440eae4234e8b96d2eb63a5cc8471eebe9475499 | |
parent | 5f1eefd03f19814ac6f71adb35b3ad0e5e08f919 (diff) |
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!
-rw-r--r-- | lib/getdate.y | 2 |
1 files changed, 1 insertions, 1 deletions
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; |