projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1eefd
)
When adding the return -1 to prevent warnings on some compilers, others
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 23 Jun 2004 06:17:17 +0000
(06:17 +0000)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/lib/getdate.y
b/lib/getdate.y
index c35615227882751d2b18a3b0e363b87821e2ce68..2ea8948385230f330b967ab574910cee9a843782 100644
(file)
--- 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;