]> Zhao Yanbai Git Server - minix.git/commitdiff
Fixes for -O3 with GCC 35/2735/3
authorLionel Sambuc <lionel@minix3.org>
Sat, 23 Aug 2014 07:41:54 +0000 (09:41 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Sun, 24 Aug 2014 09:24:33 +0000 (09:24 +0000)
Change-Id: I8d8e267cc7996581729df4be0d8e21646ff9e1d2

external/bsd/nvi/dist/ex/ex_read.c
usr.bin/make/suff.c

index 16a905050434cd2e827b5323aa86c9f524cae05c..41061086c7bfcf2fbac31fe66d1327fe37bfa57a 100644 (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;
 
        /*
index d4f0eb183fc7d336a37c0295fa15eb19dbacd03b..196f3efcf44c9d3daebcac53f12d4a39c02210af 100644 (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) {
        /*