Skip to content

Commit

Permalink
When adding the return -1 to prevent warnings on some compilers, others
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
bagder committed Jun 23, 2004
1 parent 5f1eefd commit 2ed524f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getdate.y
Expand Up @@ -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;
Expand Down

0 comments on commit 2ed524f

Please sign in to comment.