Print this page
make: fix GCC warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/read.cc
          +++ new/usr/src/cmd/make/bin/read.cc
↓ open down ↓ 193 lines elided ↑ open up ↑
 194  194                                  add_dir_to_path(NOCATGETS("/usr/include/make"),
 195  195                                                  &makefile_path,
 196  196                                                  -1);
 197  197  #endif
 198  198                          }
 199  199                          save_makefile_type = makefile_type;
 200  200                          makefile_type = reading_nothing;
 201  201                          if (doname(makefile_name, true, false) == build_dont_know) {
 202  202                                  /* Try normalized filename */
 203  203                                  string_start=get_wstring(makefile_name->string_mb);
 204      -                                for (string_end=string_start+1; *string_end != NULL; string_end++);
      204 +                                for (string_end=string_start+1; *string_end != L'\0'; string_end++);
 205  205                                  normalized_makefile_name=normalize_name(string_start, string_end - string_start);
 206  206                                  if ((strcmp(makefile_name->string_mb, normalized_makefile_name->string_mb) == 0) || 
 207  207                                          (doname(normalized_makefile_name, true, false) == build_dont_know)) {
 208  208                                          n = access_vroot(makefile_name->string_mb,
 209  209                                                   4,
 210  210                                                   chase_path ?
 211  211                                                   makefile_path : NULL,
 212  212                                                   VROOT_DEFAULT);
 213  213                                          if (n == 0) {
 214  214                                                  get_vroot_path((char **) NULL,
↓ open down ↓ 1978 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX