Fixes for -O3 with GCC

Change-Id: I8d8e267cc7996581729df4be0d8e21646ff9e1d2
This commit is contained in:
Lionel Sambuc 2014-08-23 09:41:54 +02:00 committed by David van Moolenbroek
parent 7773367959
commit 61df9b64d1
2 changed files with 10 additions and 0 deletions

View file

@ -58,6 +58,10 @@ ex_read(SCR *sp, EXCMD *cmdp)
int argc, rval;
char *p;
#if defined(__minix)
/* Prevent complains from GCC at -O3 optimisation level. */
nlines = 0;
#endif /* defined(__minix) */
gp = sp->gp;
/*

View file

@ -688,6 +688,12 @@ Suff_AddTransform(char *line)
*t; /* target suffix */
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);
if (ln == NULL) {
/*