fix another warning from
gcc version 4.5.0 20090718 (experimental) [trunk revision 149777] (Debian 20090718-1) caused by over-optimisation
This commit is contained in:
@ -26,7 +26,7 @@
|
|||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.86 2009/07/05 13:51:09 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.87 2009/08/01 14:07:42 tg Exp $");
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* MirOS: This is the default mapping type, and need not be specified.
|
* MirOS: This is the default mapping type, and need not be specified.
|
||||||
@ -658,8 +658,7 @@ hist_init(Source *s)
|
|||||||
{
|
{
|
||||||
#if HAVE_PERSISTENT_HISTORY
|
#if HAVE_PERSISTENT_HISTORY
|
||||||
unsigned char *base;
|
unsigned char *base;
|
||||||
int lines;
|
int lines, fd, rv = 0;
|
||||||
int fd;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (Flag(FTALKING) == 0)
|
if (Flag(FTALKING) == 0)
|
||||||
@ -712,8 +711,6 @@ hist_init(Source *s)
|
|||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
if (hsize > 2) {
|
if (hsize > 2) {
|
||||||
int rv = 0;
|
|
||||||
|
|
||||||
lines = hist_count_lines(base+2, hsize-2);
|
lines = hist_count_lines(base+2, hsize-2);
|
||||||
if (lines > histsize) {
|
if (lines > histsize) {
|
||||||
/* we need to make the file smaller */
|
/* we need to make the file smaller */
|
||||||
|
Reference in New Issue
Block a user