Warnings with MinGW

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
momotaro
Rookie
Posts: 32
Joined: Tue May 09, 2006 8:39 pm

Warnings with MinGW

Post by momotaro »

I finally have got a compilation of zsnesw.exe OK !!!!!

With MinGW, and zsnesw.exe run perfect apparently, but I have any warnings :

win/winlink.cpp: In function `void DInputError()':
win/winlink.cpp:1227: warning: embedded `\0' in format

win/winlink.cpp: In function `bool InitInput()':
win/winlink.cpp:1238: warning: embedded `\0' in format

mmlib/windows.c: In function `find_api_symbols':
mmlib/windows.c:221: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:223: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:224: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:225: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:226: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:227: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:228: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:229: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:231: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:232: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:233: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:234: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:240: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:241: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:242: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:248: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:249: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:250: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:251: warning: dereferencing type-punned pointer will break strict-aliasing rules
mmlib/windows.c:252: warning: dereferencing type-punned pointer will break strict-aliasing rules

Press any key to continue . . .

Are importants this warnings???

The files ddraw.h, dinput.h and dsound.h are imported of DirectX_8.1b SDK.
momotaro
Rookie
Posts: 32
Joined: Tue May 09, 2006 8:39 pm

Post by momotaro »

The same warnings with files ddraw.h, dinput.h and dsound.h imported of DirectX 9.0c (April 2006) SDK.

What is the problem?

Thanks.

Edit: The source code is from SVN (Revision 3092).
ipher
ZSNES Developer
ZSNES Developer
Posts: 269
Joined: Wed Jul 28, 2004 2:37 am
Contact:

Post by ipher »

Warnings happen, ignore them.
[url=http://www.ipherswipsite.com]ipher's WIP Site[/url]
momotaro
Rookie
Posts: 32
Joined: Tue May 09, 2006 8:39 pm

Post by momotaro »

This warnings are solutioned --> In .\src\win\winlink.cpp, in lines 1227 and 1238, I change this line

Code: Select all

sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx\0");
for

Code: Select all

sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx\n");
The others warnings --> My suposition is what libs libadvapi32.a and libuser32.a of MinGW are not complete "compatible" with files advapi32.dll and user32.dll in C:\Windows\System32 directory in my WinXP Pro + SP2. But I am not a expert !!!!

Actually my compilation ZSNES apparently run correctly. :P
Post Reply