Print this page
9888 cw shouldn't use __unused


 468         /*
 469          * Enable as many warnings as exist, then disable those that we never
 470          * ever want.
 471          */
 472         newae(h, "-Wall");
 473         newae(h, "-Wextra");
 474 }
 475 
 476 static void
 477 optim_disable(struct aelist *h, int level)
 478 {
 479         if (level >= 2) {
 480                 newae(h, "-fno-strict-aliasing");
 481                 newae(h, "-fno-unit-at-a-time");
 482                 newae(h, "-fno-optimize-sibling-calls");
 483         }
 484 }
 485 
 486 /* ARGSUSED */
 487 static void
 488 Xamode(struct aelist __unused *h)
 489 {
 490 }
 491 
 492 static void
 493 Xsmode(struct aelist *h)
 494 {
 495         static int xsonce;
 496 
 497         if (xsonce++)
 498                 return;
 499 
 500         newae(h, "-traditional");
 501         newae(h, "-traditional-cpp");
 502 }
 503 
 504 static void
 505 usage()
 506 {
 507         extern char *__progname;
 508         (void) fprintf(stderr,




 468         /*
 469          * Enable as many warnings as exist, then disable those that we never
 470          * ever want.
 471          */
 472         newae(h, "-Wall");
 473         newae(h, "-Wextra");
 474 }
 475 
 476 static void
 477 optim_disable(struct aelist *h, int level)
 478 {
 479         if (level >= 2) {
 480                 newae(h, "-fno-strict-aliasing");
 481                 newae(h, "-fno-unit-at-a-time");
 482                 newae(h, "-fno-optimize-sibling-calls");
 483         }
 484 }
 485 
 486 /* ARGSUSED */
 487 static void
 488 Xamode(struct aelist *h __attribute__((__unused__)))
 489 {
 490 }
 491 
 492 static void
 493 Xsmode(struct aelist *h)
 494 {
 495         static int xsonce;
 496 
 497         if (xsonce++)
 498                 return;
 499 
 500         newae(h, "-traditional");
 501         newae(h, "-traditional-cpp");
 502 }
 503 
 504 static void
 505 usage()
 506 {
 507         extern char *__progname;
 508         (void) fprintf(stderr,