Print this page
make: fix GCC warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/lib/vroot/report.cc
          +++ new/usr/src/cmd/make/lib/vroot/report.cc
↓ open down ↓ 298 lines elided ↑ open up ↑
 299  299                  /* Modify the -I path to be relative to the cd */
 300  300                  newiflag = (char *)malloc(strlen(iflag) + strlen(curdir) + 2);
 301  301                  sprintf(newiflag, "-%c%s/%s", iflag[1], curdir, &iflag[2]);
 302  302                  report_dep(newiflag, filename);
 303  303          } else {
 304  304                  report_dep(iflag, filename);
 305  305          }
 306  306  }
 307  307  
 308  308  void
 309      -report_dependency(register char *name)
      309 +report_dependency(const char *name)
 310  310  {
 311  311          register char   *filename;
 312  312          char            buffer[MAXPATHLEN+1];
 313  313          register char   *p;
 314  314          register char   *p2;
 315  315          char            nse_depinfo_file[MAXPATHLEN];
 316  316  
 317  317          if (report_file == NULL) {
 318  318                  if ((filename= getenv(SUNPRO_DEPENDENCIES)) == NULL) {
 319  319                          report_file = (FILE *)-1;
↓ open down ↓ 72 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX