Print this page
make: fix GCC warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/lib/mksh/dosys.cc
          +++ new/usr/src/cmd/make/lib/mksh/dosys.cc
↓ open down ↓ 331 lines elided ↑ open up ↑
 332  332          } else {
 333  333                  shellname++;
 334  334          }
 335  335  
 336  336          /*
 337  337           * Only prepend the /usr/bin/nice command to the original command
 338  338           * if the nice priority, nice_prio, is NOT zero (0).
 339  339           * Nice priorities can be a positive or a negative number.
 340  340           */
 341  341          if (nice_prio != 0) {
 342      -                argv[argv_index++] = NOCATGETS("nice");
      342 +                argv[argv_index++] = (char *)NOCATGETS("nice");
 343  343                  (void) sprintf(nice_prio_buf, NOCATGETS("-%d"), nice_prio);
 344  344                  argv[argv_index++] = strdup(nice_prio_buf);
 345  345          }
 346  346          argv[argv_index++] = shellname;
 347  347  #if defined(linux)
 348  348          if(0 == strcmp(shell->string_mb, (char*)NOCATGETS("/bin/sh"))) {
 349  349                  argv[argv_index++] = (char*)(ignore_error ? NOCATGETS("-c") : NOCATGETS("-ce"));
 350  350          } else {
 351  351                  argv[argv_index++] = (char*)NOCATGETS("-c");
 352  352          }
↓ open down ↓ 495 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX