mirror of https://github.com/mgba-emu/mgba.git
All: Disable missing-field-initializers warning
This commit is contained in:
parent
0ac6f0862c
commit
e29b30560e
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6)
|
|||
project(mGBA C)
|
||||
set(BINARY_NAME mgba CACHE INTERNAL "Name of output binaries")
|
||||
if(NOT MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-missing-field-initializers -std=c99")
|
||||
else()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /wd4003 /wd4244 /wd4146")
|
||||
endif()
|
||||
|
|
|
@ -742,8 +742,6 @@ int main() {
|
|||
_pollInput, _pollCursor,
|
||||
_batteryState,
|
||||
_guiPrepare, _guiFinish,
|
||||
|
||||
GUI_PARAMS_TRAIL
|
||||
},
|
||||
.keySources = (struct GUIInputKeys[]) {
|
||||
{
|
||||
|
|
|
@ -92,8 +92,6 @@ int main() {
|
|||
_pollInput, _pollCursor,
|
||||
_batteryState,
|
||||
0, 0,
|
||||
|
||||
GUI_PARAMS_TRAIL
|
||||
},
|
||||
.configExtra = (struct GUIMenuItem[]) {
|
||||
{
|
||||
|
|
|
@ -310,8 +310,6 @@ int main(int argc, char* argv[]) {
|
|||
_pollInput, _pollCursor,
|
||||
0,
|
||||
_guiPrepare, 0,
|
||||
|
||||
GUI_PARAMS_TRAIL
|
||||
},
|
||||
.keySources = (struct GUIInputKeys[]) {
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ enum GUIInput {
|
|||
};
|
||||
|
||||
enum GUICursorState {
|
||||
GUI_CURSOR_NOT_PRESENT,
|
||||
GUI_CURSOR_NOT_PRESENT = 0,
|
||||
GUI_CURSOR_UP,
|
||||
GUI_CURSOR_DOWN,
|
||||
GUI_CURSOR_CLICKED,
|
||||
|
@ -76,8 +76,6 @@ struct GUIParams {
|
|||
size_t fileIndex;
|
||||
};
|
||||
|
||||
#define GUI_PARAMS_TRAIL {0}, {}, GUI_CURSOR_NOT_PRESENT, 0, 0, "", 0
|
||||
|
||||
void GUIInit(struct GUIParams* params);
|
||||
void GUIPollInput(struct GUIParams* params, uint32_t* newInput, uint32_t* heldInput);
|
||||
enum GUICursorState GUIPollCursor(struct GUIParams* params, unsigned* x, unsigned* y);
|
||||
|
|
Loading…
Reference in New Issue