diff options
author | Paul Smith <psmith@gnu.org> | 2021-09-05 21:07:14 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2021-09-05 21:09:27 -0400 |
commit | 0d367bbe6e995ee2c664bd7c2697b56f91ae5681 (patch) | |
tree | 8563440ed1bd3b9085ac6bb22889ef9104c7c9ae /build_w32.bat | |
parent | f4b8ddf260f1ab1f1b75b9a9d602c409c6c01b0e (diff) | |
download | make-git-0d367bbe6e995ee2c664bd7c2697b56f91ae5681.tar.gz |
Clean up a few Windows build warnings (not all!)
* build_w32.bat: Quote uses of %VSWHERE% so it can contain spaces
* src/hash.c (hash_init): Avoid use of an undefined struct.
(hash_rehash): Ditto.
* src/vpath.c (construct_vpath_list): Cast explicitly to void*.
Diffstat (limited to 'build_w32.bat')
-rwxr-xr-x | build_w32.bat | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build_w32.bat b/build_w32.bat index da770223..17066d72 100755 --- a/build_w32.bat +++ b/build_w32.bat @@ -100,7 +100,7 @@ if not ERRORLEVEL 1 goto FoundMSVC call :FindVswhere
if ERRORLEVEL 1 goto LegacyVS
-for /f "tokens=* usebackq" %%i in (`%VSWHERE% -latest -property installationPath`) do (
+for /f "tokens=* usebackq" %%i in (`"%VSWHERE%" -latest -property installationPath`) do (
set InstallPath=%%i
)
set "VSVARS=%InstallPath%\VC\Auxiliary\Build\vcvarsall.bat"
@@ -404,10 +404,10 @@ goto :EOF :FindVswhere
set VSWHERE=vswhere
-%VSWHERE% -help >nul 2>&1
+"%VSWHERE%" -help >nul 2>&1
if not ERRORLEVEL 1 exit /b 0
set "VSWHERE=C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere"
-%VSWHERE% -help >nul 2>&1
+"%VSWHERE%" -help >nul 2>&1
if ERRORLEVEL 1 exit /b 1
goto :EOF
|