Fixes for -O3 with GCC
Change-Id: I8d8e267cc7996581729df4be0d8e21646ff9e1d2
This commit is contained in:
parent
7773367959
commit
61df9b64d1
2 changed files with 10 additions and 0 deletions
4
external/bsd/nvi/dist/ex/ex_read.c
vendored
4
external/bsd/nvi/dist/ex/ex_read.c
vendored
|
@ -58,6 +58,10 @@ ex_read(SCR *sp, EXCMD *cmdp)
|
||||||
int argc, rval;
|
int argc, rval;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
#if defined(__minix)
|
||||||
|
/* Prevent complains from GCC at -O3 optimisation level. */
|
||||||
|
nlines = 0;
|
||||||
|
#endif /* defined(__minix) */
|
||||||
gp = sp->gp;
|
gp = sp->gp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -688,6 +688,12 @@ Suff_AddTransform(char *line)
|
||||||
*t; /* target suffix */
|
*t; /* target suffix */
|
||||||
LstNode ln; /* Node for existing transformation */
|
LstNode ln; /* Node for existing transformation */
|
||||||
|
|
||||||
|
#if defined(__minix)
|
||||||
|
/* Prevent complains from GCC at -O3 optimisation level. */
|
||||||
|
s = NULL;
|
||||||
|
t = NULL;
|
||||||
|
#endif /* defined(__minix) */
|
||||||
|
|
||||||
ln = Lst_Find(transforms, line, SuffGNHasNameP);
|
ln = Lst_Find(transforms, line, SuffGNHasNameP);
|
||||||
if (ln == NULL) {
|
if (ln == NULL) {
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue