Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.214
 
1.215
 
MAIN:plunky:20111114115213
 
cc.c
_>270270         char *name;
 271271         int flags;
 272272 #define INWALL          1
<>273 -#define NEGATIVE        2
274273 } Wflags[] = {
<>275 -        { "-Wtruncate", 0 },
 276 -        { "-Wno-truncate", NEGATIVE },
 277 -        { "-Wstrict-prototypes", 0 },
 278 -        { "-Wno-strict-prototypes", NEGATIVE },
 279 -        { "-Wmissing-prototypes", 0 },
 280 -        { "-Wno-missing-prototypes", NEGATIVE },
 281 -        { "-Wimplicit-int", INWALL },
 282 -        { "-Wno-implicit-int", NEGATIVE },
 283 -        { "-Wimplicit-function-declaration", INWALL },
 284 -        { "-Wno-implicit-function-declaration", NEGATIVE },
 285 -        { "-Wshadow", 0 },
 286 -        { "-Wno-shadow", NEGATIVE },
 287 -        { "-Wpointer-sign", INWALL },
 288 -        { "-Wno-pointer-sign", NEGATIVE },
 289 -        { "-Wsign-compare", 0 },
 290 -        { "-Wno-sign-compare", NEGATIVE },
 291 -        { "-Wunknown-pragmas", INWALL },
 292 -        { "-Wno-unknown-pragmas", NEGATIVE },
 293 -        { "-Wunreachable-code", 0 },
 294 -        { "-Wno-unreachable-code", NEGATIVE },
 295 -        { 0, 0 },
  274+        { "truncate", 0 },
  275+        { "strict-prototypes", 0 },
  276+        { "missing-prototypes", 0 },
  277+        { "implicit-int", INWALL },
  278+        { "implicit-function-declaration", INWALL },
  279+        { "shadow", 0 },
  280+        { "pointer-sign", INWALL },
  281+        { "sign-compare", 0 },
  282+        { "unknown-pragmas", INWALL },
  283+        { "unreachable-code", 0 },
  284+        { NULL, 0 },
296285 };
 297286 
<>298 -#define SZWFL   (sizeof(Wflags)/sizeof(Wflags[0]))
 299 -
300287 #ifndef USHORT
 301288 /* copied from mip/manifest.h */
 302289 #define USHORT          5
     
 !
503490                                 } else if (strcmp(argv[i], "-WW") == 0) {
 504491                                         Wflag = 1;
 505492                                 } else {
<>506 -                                        /* check and set if available */
  493+                                        /* pass through, if supported */
  494+                                        t = &argv[i][2];
  495+                                        if (strncmp(t, "no-", 3) == 0)
  496+                                                t += 3;
  497+                                        if (strncmp(t, "error=", 6) == 0)
  498+                                                t += 6;
507499                                         for (Wf = Wflags; Wf->name; Wf++) {
<>508 -                                                if (strcmp(argv[i], Wf->name))
 509 -                                                        continue;
 510 -                                                wlist[nw++] = Wf->name;
  500+                                                if (strcmp(t, Wf->name) == 0)
  501+                                                        wlist[nw++] = argv[i];
511502                                         }
 512503                                 }
 513504                                 break;
     
 !
981972         com:
 982973                 na = 0;
 983974                 av[na++]= cxxflag ? "c++com" : "ccom";
<>984 -                if (Wallflag) {
 985 -                        /* Set only the same flags as gcc */
  975+                if (Wflag || Wallflag) {
  976+                        /* -Wall is same as gcc, -WW is all flags */
986977                         for (Wf = Wflags; Wf->name; Wf++) {
<>987 -                                if (Wf->flags != INWALL)
 988 -                                        continue;
 989 -                                av[na++] = Wf->name;
  978+                                if (Wflag || Wf->flags == INWALL)
  979+                                        av[na++] = cat("-W", Wf->name);
990980                         }
 991981                 }
<>992 -                if (Wflag) {
 993 -                        /* set all positive flags */
 994 -                        for (Wf = Wflags; Wf->name; Wf++) {
 995 -                                if (Wf->flags == NEGATIVE)
 996 -                                        continue;
 997 -                                av[na++] = Wf->name;
 998 -                        }
 999 -                }
<_1000982                 for (j = 0; j < nw; j++)
 1001983                         av[na++] = wlist[j];
 1002984                 for (j = 0; j < nf; j++)
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-02 15:56 +0200