mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Fixes to -Wall compilation
By default, not all warnings are enabled. This change makes sure that
the project compiles correctly with following options turned on:
-Wall -Wno-unused-but-set-variable -Wno-missing-braces \
-Wno-unknown-pragmas -Wno-unused-function
This commit is contained in:
committed by
Ted John
parent
9f2f7c6b68
commit
644a36a310
@@ -294,8 +294,6 @@ static void widget_tab_draw(rct_drawpixelinfo *dpi, rct_window *w, int widgetInd
|
||||
// Resolve the absolute ltrb
|
||||
int l = w->x + widget->left;
|
||||
int t = w->y + widget->top;
|
||||
int r = w->x + widget->right;
|
||||
int b = w->y + widget->bottom;
|
||||
|
||||
// Get the colour and image
|
||||
uint8 colour = w->colours[widget->colour] & 0x7F;
|
||||
@@ -387,8 +385,6 @@ static void widget_text_unknown(rct_drawpixelinfo *dpi, rct_window *w, int widge
|
||||
// Resolve the absolute ltrb
|
||||
int l = w->x + widget->left;
|
||||
int t = w->y + widget->top;
|
||||
int r = w->x + widget->right;
|
||||
int b = w->y + widget->bottom;
|
||||
|
||||
int stringId = widget->image;
|
||||
if (stringId == -1)
|
||||
@@ -441,7 +437,6 @@ static void widget_text(rct_drawpixelinfo *dpi, rct_window *w, int widgetIndex)
|
||||
int l = w->x + widget->left;
|
||||
int t = w->y + widget->top;
|
||||
int r = w->x + widget->right;
|
||||
int b = w->y + widget->bottom;
|
||||
|
||||
if (widget->image == (uint32)-2 || widget->image == (uint32)-1)
|
||||
return;
|
||||
@@ -845,8 +840,6 @@ static void widget_draw_image(rct_drawpixelinfo *dpi, rct_window *w, int widgetI
|
||||
// Resolve the absolute ltrb
|
||||
int l = w->x + widget->left;
|
||||
int t = w->y + widget->top;
|
||||
int r = w->x + widget->right;
|
||||
int b = w->y + widget->bottom;
|
||||
|
||||
// Get the colour
|
||||
uint8 colour = w->colours[widget->colour] & 0x7F;
|
||||
|
||||
Reference in New Issue
Block a user