make: fix GCC warnings
184 add_dir_to_path(NOCATGETS("/usr/SUNWspro/lib"),
185 &makefile_path,
186 -1);
187 add_dir_to_path(NOCATGETS("/opt/SUNWspro/share/lib/make"),
188 &makefile_path,
189 -1);
190 add_dir_to_path(NOCATGETS("/usr/share/lib/make"),
191 &makefile_path,
192 -1);
193 #else
194 add_dir_to_path(NOCATGETS("/usr/include/make"),
195 &makefile_path,
196 -1);
197 #endif
198 }
199 save_makefile_type = makefile_type;
200 makefile_type = reading_nothing;
201 if (doname(makefile_name, true, false) == build_dont_know) {
202 /* Try normalized filename */
203 string_start=get_wstring(makefile_name->string_mb);
204 for (string_end=string_start+1; *string_end != NULL; string_end++);
205 normalized_makefile_name=normalize_name(string_start, string_end - string_start);
206 if ((strcmp(makefile_name->string_mb, normalized_makefile_name->string_mb) == 0) ||
207 (doname(normalized_makefile_name, true, false) == build_dont_know)) {
208 n = access_vroot(makefile_name->string_mb,
209 4,
210 chase_path ?
211 makefile_path : NULL,
212 VROOT_DEFAULT);
213 if (n == 0) {
214 get_vroot_path((char **) NULL,
215 &path,
216 (char **) NULL);
217 if ((path[0] == (int) period_char) &&
218 (path[1] == (int) slash_char)) {
219 path += 2;
220 }
221 MBSTOWCS(wcs_buffer, path);
222 makefile_name = GETNAME(wcs_buffer,
223 FIND_LENGTH);
224 }
|
184 add_dir_to_path(NOCATGETS("/usr/SUNWspro/lib"),
185 &makefile_path,
186 -1);
187 add_dir_to_path(NOCATGETS("/opt/SUNWspro/share/lib/make"),
188 &makefile_path,
189 -1);
190 add_dir_to_path(NOCATGETS("/usr/share/lib/make"),
191 &makefile_path,
192 -1);
193 #else
194 add_dir_to_path(NOCATGETS("/usr/include/make"),
195 &makefile_path,
196 -1);
197 #endif
198 }
199 save_makefile_type = makefile_type;
200 makefile_type = reading_nothing;
201 if (doname(makefile_name, true, false) == build_dont_know) {
202 /* Try normalized filename */
203 string_start=get_wstring(makefile_name->string_mb);
204 for (string_end=string_start+1; *string_end != L'\0'; string_end++);
205 normalized_makefile_name=normalize_name(string_start, string_end - string_start);
206 if ((strcmp(makefile_name->string_mb, normalized_makefile_name->string_mb) == 0) ||
207 (doname(normalized_makefile_name, true, false) == build_dont_know)) {
208 n = access_vroot(makefile_name->string_mb,
209 4,
210 chase_path ?
211 makefile_path : NULL,
212 VROOT_DEFAULT);
213 if (n == 0) {
214 get_vroot_path((char **) NULL,
215 &path,
216 (char **) NULL);
217 if ((path[0] == (int) period_char) &&
218 (path[1] == (int) slash_char)) {
219 path += 2;
220 }
221 MBSTOWCS(wcs_buffer, path);
222 makefile_name = GETNAME(wcs_buffer,
223 FIND_LENGTH);
224 }
|