mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Remove FIXUPO0 GCC pragma
This commit is contained in:
parent
296b678d7e
commit
2d2bd59099
1 changed files with 3 additions and 12 deletions
15
src/m_menu.c
15
src/m_menu.c
|
@ -71,10 +71,6 @@ int snprintf(char *str, size_t n, const char *fmt, ...);
|
||||||
//int vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
|
//int vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (__GNUC__) && (__GNUC__ >= 4)
|
|
||||||
#define FIXUPO0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SKULLXOFF -32
|
#define SKULLXOFF -32
|
||||||
#define LINEHEIGHT 16
|
#define LINEHEIGHT 16
|
||||||
#define STRINGHEIGHT 8
|
#define STRINGHEIGHT 8
|
||||||
|
@ -4122,10 +4118,6 @@ static boolean M_AddonsRefresh(void)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FIXUPO0
|
|
||||||
#pragma GCC optimize ("0")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void M_DrawAddons(void)
|
static void M_DrawAddons(void)
|
||||||
{
|
{
|
||||||
INT32 x, y;
|
INT32 x, y;
|
||||||
|
@ -4203,6 +4195,9 @@ static void M_DrawAddons(void)
|
||||||
// then adjust!
|
// then adjust!
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
{
|
{
|
||||||
|
// This line was originally (m -= i), but GCC very helpfully gives us
|
||||||
|
// a Wstrict-overflow warning during optimization.
|
||||||
|
// i will always be negative here, so let's just add what would have been a double negative!
|
||||||
if ((m += abs(i)) > (ssize_t)sizedirmenu)
|
if ((m += abs(i)) > (ssize_t)sizedirmenu)
|
||||||
m = sizedirmenu;
|
m = sizedirmenu;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
@ -4271,10 +4266,6 @@ static void M_DrawAddons(void)
|
||||||
V_DrawSmallScaledPatch(x, y + 4, 0, addonsp[NUM_EXT+2]);
|
V_DrawSmallScaledPatch(x, y + 4, 0, addonsp[NUM_EXT+2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FIXUPO0
|
|
||||||
#pragma GCC reset_options
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void M_AddonExec(INT32 ch)
|
static void M_AddonExec(INT32 ch)
|
||||||
{
|
{
|
||||||
if (ch != 'y' && ch != KEY_ENTER)
|
if (ch != 'y' && ch != KEY_ENTER)
|
||||||
|
|
Loading…
Reference in a new issue