From: Lionel Sambuc Date: Sat, 23 Aug 2014 07:41:54 +0000 (+0200) Subject: Fixes for -O3 with GCC X-Git-Tag: v3.3.0~52 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=61df9b64d1d8d20321034e943f5b2d3b05d3935f;p=minix.git Fixes for -O3 with GCC Change-Id: I8d8e267cc7996581729df4be0d8e21646ff9e1d2 --- diff --git a/external/bsd/nvi/dist/ex/ex_read.c b/external/bsd/nvi/dist/ex/ex_read.c index 16a905050..41061086c 100644 --- a/external/bsd/nvi/dist/ex/ex_read.c +++ b/external/bsd/nvi/dist/ex/ex_read.c @@ -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; /* diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c index d4f0eb183..196f3efcf 100644 --- a/usr.bin/make/suff.c +++ b/usr.bin/make/suff.c @@ -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) { /*