Print this page
make: fix GCC warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/globals.cc
          +++ new/usr/src/cmd/make/bin/globals.cc
↓ open down ↓ 181 lines elided ↑ open up ↑
 182  182          char            *stderr_file = NULL;
 183  183          char            *stdout_file = NULL;
 184  184  #ifdef SGE_SUPPORT
 185  185          char            script_file[MAXPATHLEN] = "";
 186  186  #endif
 187  187          Boolean         stdout_stderr_same;
 188  188          Dependency      suffixes;
 189  189          Name            suffixes_name;
 190  190          Name            sunpro_dependencies;
 191  191          Boolean         target_variants;
 192      -        char            *tmpdir = NOCATGETS("/tmp");
 193      -        char            *temp_file_directory = NOCATGETS(".");
      192 +        const char      *tmpdir = NOCATGETS("/tmp");
      193 +        const char      *temp_file_directory = NOCATGETS(".");
 194  194          Name            temp_file_name;
 195  195          short           temp_file_number;
 196  196          time_t          timing_start;
 197  197          wchar_t         *top_level_target;
 198  198          Boolean         touch;                          /* `-t' */
 199  199          Boolean         trace_reader;                   /* `-D' */
 200  200          Boolean         build_unconditional;            /* `-u' */
 201  201          pathpt          vroot_path = VROOT_DEFAULT;
 202  202          Name            wait_name;
 203  203          wchar_t         wcs_buffer2[MAXPATHLEN];
 204  204          wchar_t         *wcs_ptr;
 205  205          wchar_t         *wcs_ptr2;
 206  206          nl_catd         catd;
 207  207          long int        hostid;
 208  208  
 209  209  /*
 210  210   * File table of contents
 211  211   */
 212  212  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX