We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 462 - A Patch to kill NO_STDIO_REDIRECT warnings in SDL_win32_main.c
Summary: A Patch to kill NO_STDIO_REDIRECT warnings in SDL_win32_main.c
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: HG 1.2
Hardware: x86 Windows (All)
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-20 04:41 UTC by Alam Arias
Modified: 2007-07-20 05:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alam Arias 2007-07-20 04:41:11 UTC
Index: SDL-1.2/src/main/win32/SDL_win32_main.c
===================================================================
--- SDL-1.2/src/main/win32/SDL_win32_main.c	(revision 3329)
+++ SDL-1.2/src/main/win32/SDL_win32_main.c	(working copy)
@@ -234,10 +234,12 @@
 	char **argv;
 	int argc;
 	char *cmdline;
+#ifndef NO_STDIO_REDIRECT
 	DWORD pathlen;
+#endif
 #ifdef _WIN32_WCE
 	wchar_t path[MAX_PATH];
-#else
+#elif !defined(NO_STDIO_REDIRECT)
 	char path[MAX_PATH];
 #endif
 #ifdef _WIN32_WCE
Comment 1 Sam Lantinga 2007-07-20 05:05:19 UTC
These are already fixed in the SDL 1.2.12 release, but thanks!