From d8a45153e0e9dac1d64ffb61757e81dacff470ab Mon Sep 17 00:00:00 2001 From: Thad Ward Date: Sat, 13 May 2000 04:44:12 +0000 Subject: [PATCH] commented out some "unreferenced local variables" --- source/cd_win.c | 2 +- source/cl_sys_win.c | 18 +++++++++--------- source/in_win.c | 10 +++++----- source/keys.c | 2 +- source/qw_client.dsp | 10 +++++----- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/source/cd_win.c b/source/cd_win.c index 8eb8a0e..d94e482 100644 --- a/source/cd_win.c +++ b/source/cd_win.c @@ -251,7 +251,7 @@ static void CD_f (void) char *command; int ret; int n; - int startAddress; +// int startAddress; if (Cmd_Argc() < 2) return; diff --git a/source/cl_sys_win.c b/source/cl_sys_win.c index 4228d14..91892f8 100644 --- a/source/cl_sys_win.c +++ b/source/cl_sys_win.c @@ -180,8 +180,8 @@ Sys_Init */ void Sys_Init (void) { - LARGE_INTEGER PerformanceFreq; - unsigned int lowpart, highpart; +// LARGE_INTEGER PerformanceFreq; +// unsigned int lowpart, highpart; OSVERSIONINFO vinfo; #ifndef SERVERONLY @@ -255,8 +255,8 @@ void Sys_Init (void) void Sys_Error (char *error, ...) { va_list argptr; - char text[1024], text2[1024]; - DWORD dummy; + char text[1024];//, text2[1024]; +// DWORD dummy; Host_Shutdown (); @@ -276,8 +276,8 @@ void Sys_Error (char *error, ...) void Sys_Printf (char *fmt, ...) { va_list argptr; - char text[1024]; - DWORD dummy; +// char text[1024]; +// DWORD dummy; va_start (argptr,fmt); vprintf (fmt, argptr); @@ -400,7 +400,7 @@ double Sys_DoubleTime (void) static DWORD starttime; static qboolean first = true; DWORD now; - double t; +// double t; now = timeGetTime(); @@ -424,7 +424,7 @@ char *Sys_ConsoleInput (void) static char text[256]; static int len; INPUT_RECORD recs[1024]; - int count; +// int count; int i, dummy; int ch, numread, numevents; HANDLE th; @@ -577,7 +577,7 @@ HWND hwnd_dialog; int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { - MSG msg; +// MSG msg; quakeparms_t parms; double time, oldtime, newtime; MEMORYSTATUS lpBuffer; diff --git a/source/in_win.c b/source/in_win.c index 849a8d5..6892c38 100644 --- a/source/in_win.c +++ b/source/in_win.c @@ -429,7 +429,7 @@ IN_StartupMouse */ void IN_StartupMouse (void) { - HDC hdc; +// HDC hdc; if ( COM_CheckParm ("-nomouse") ) return; @@ -588,7 +588,7 @@ IN_MouseMove void IN_MouseMove (usercmd_t *cmd) { int mx, my; - HDC hdc; +// HDC hdc; int i; DIDEVICEOBJECTDATA od; DWORD dwElements; @@ -757,8 +757,8 @@ IN_Accumulate */ void IN_Accumulate (void) { - int mx, my; - HDC hdc; +// int mx, my; +// HDC hdc; if (mouseactive) { @@ -797,7 +797,7 @@ IN_StartupJoystick */ void IN_StartupJoystick (void) { - int i, numdevs; + int /*i,*/ numdevs; JOYCAPS jc; MMRESULT mmr; diff --git a/source/keys.c b/source/keys.c index 546a97d..be8d057 100644 --- a/source/keys.c +++ b/source/keys.c @@ -215,7 +215,7 @@ Interactive line editing and console scrollback void Key_Console (int key) { #ifdef _WIN32 - char *cmd, *s; +// char *cmd, *s; int i; HANDLE th; char *clipText, *textCopied; diff --git a/source/qw_client.dsp b/source/qw_client.dsp index a7bc5a7..762431c 100644 --- a/source/qw_client.dsp +++ b/source/qw_client.dsp @@ -53,7 +53,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 -# ADD LINK32 dxguid.lib ..\scitech\lib\win32\vc\mgllt.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib /nologo /subsystem:windows /machine:I386 +# ADD LINK32 dxguid.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib mglfx.lib /nologo /subsystem:windows /machine:I386 !ELSEIF "$(CFG)" == "qw_client - Win32 Debug" @@ -320,6 +320,10 @@ SOURCE=.\r_vars.c # End Source File # Begin Source File +SOURCE=.\r_view.c +# End Source File +# Begin Source File + SOURCE=.\sbar.c # End Source File # Begin Source File @@ -356,10 +360,6 @@ SOURCE=.\vid_win.c # End Source File # Begin Source File -SOURCE=.\view.c -# End Source File -# Begin Source File - SOURCE=.\wad.c # End Source File # Begin Source File