VC warning fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2005-06-09 18:37:50 +00:00
parent 08dd04d082
commit cde6d2e7d8
3 changed files with 507 additions and 483 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,18 @@
/* Copyright: (c) Julian Smart */ /* Copyright: (c) Julian Smart */
/* Licence: wxWindows Licence */ /* Licence: wxWindows Licence */
/* include platform.h first to get __WIN32__ definition */ /* include platform.h first to get __WIN32__ definition */
#include "wx/platform.h" #include "wx/platform.h"
#include "wx/setup.h" #include "wx/setup.h"
#include "wx/deprecated/setup.h" #include "wx/deprecated/setup.h"
#if !defined(wxUSE_PROLOGIO) || wxUSE_PROLOGIO #if !defined(wxUSE_PROLOGIO) || wxUSE_PROLOGIO
#ifdef __VISUALC__
#pragma warning(push)
#pragma warning(disable:4244) /* warning C4244: '=' : conversion from 'A' to 'B', possible loss of data */
#endif
#if !defined(lint) && 0 #if !defined(lint) && 0
static char yysccsid[] = "@(#)yaccpar 1.7 (Berkeley) 09/09/90"; static char yysccsid[] = "@(#)yaccpar 1.7 (Berkeley) 09/09/90";
#endif #endif
@ -260,7 +266,7 @@ void yyerror(char *s)
#endif #endif
#endif #endif
#endif #endif
// #line 247 "y_tab.c" // #line 247 "y_tab.c"
#define YYABORT goto yyabort #define YYABORT goto yyabort
#define YYACCEPT goto yyaccept #define YYACCEPT goto yyaccept
@ -539,4 +545,8 @@ yyaccept:
return (0); return (0);
} }
#ifdef __VISUALC__
#pragma warning(pop)
#endif
#endif /* wxUSE_PROLOGIO */ #endif /* wxUSE_PROLOGIO */

View File

@ -464,8 +464,10 @@ update(
} else if (sr > -32768) { } else if (sr > -32768) {
mag = -sr; mag = -sr;
state_ptr->sr[0] = base2(mag) - 0x400; state_ptr->sr[0] = base2(mag) - 0x400;
} else } else {
state_ptr->sr[0] = short (0xFC20); const unsigned short c = 0xFC20;
state_ptr->sr[0] = short(c);
}
/* DELAY A */ /* DELAY A */
state_ptr->pk[1] = state_ptr->pk[0]; state_ptr->pk[1] = state_ptr->pk[0];