mirror of https://github.com/moparisthebest/curl
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!
This commit is contained in:
parent
5f1eefd03f
commit
2ed524f07e
|
@ -722,7 +722,7 @@ ToHour (int Hours, MERIDIAN Meridian)
|
||||||
Hours = 0;
|
Hours = 0;
|
||||||
return Hours + 12;
|
return Hours + 12;
|
||||||
default:
|
default:
|
||||||
abort ();
|
break; /* used to do abort() here */
|
||||||
}
|
}
|
||||||
/* NOTREACHED - but make gcc happy! */
|
/* NOTREACHED - but make gcc happy! */
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue