From 1947c4d7f32272ec0c5b9295808cde4c9138995c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 19 Apr 2017 14:48:57 +0200 Subject: Fix warnings in preparation for splitting nif_helpers out --- c_src/sdl_window.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'c_src/sdl_window.c') diff --git a/c_src/sdl_window.c b/c_src/sdl_window.c index 96b3b3e..ef3647b 100644 --- a/c_src/sdl_window.c +++ b/c_src/sdl_window.c @@ -14,8 +14,6 @@ #include "esdl2.h" -NIF_ATOM_TO_ENUM_FUNCTION_DECL(atom_to_bool, SDL_bool) - void dtor_Window(ErlNifEnv* env, void* obj) { SDL_DestroyWindow(NIF_RES_GET(Window, obj)); @@ -37,21 +35,21 @@ void dtor_Window(ErlNifEnv* env, void* obj) F(foreign, SDL_WINDOW_FOREIGN) \ F(allow_high_dpi, SDL_WINDOW_ALLOW_HIGHDPI) -NIF_LIST_TO_FLAGS_FUNCTION(list_to_window_flags, Uint32, WINDOW_FLAGS) -NIF_FLAGS_TO_LIST_FUNCTION(window_flags_to_list, Uint32, WINDOW_FLAGS) +static NIF_LIST_TO_FLAGS_FUNCTION(list_to_window_flags, Uint32, WINDOW_FLAGS) +static NIF_FLAGS_TO_LIST_FUNCTION(window_flags_to_list, Uint32, WINDOW_FLAGS) #define WINDOW_POS_ENUM(E) \ E(centered, SDL_WINDOWPOS_CENTERED) \ E(undefined, SDL_WINDOWPOS_UNDEFINED) -NIF_ATOM_TO_ENUM_FUNCTION(atom_to_window_pos, int, WINDOW_POS_ENUM) +static NIF_ATOM_TO_ENUM_FUNCTION(atom_to_window_pos, int, WINDOW_POS_ENUM) #define WINDOW_FULLSCREEN_ENUM(E) \ E(fullscreen, SDL_WINDOW_FULLSCREEN) \ E(fullscreen_desktop, SDL_WINDOW_FULLSCREEN_DESKTOP) \ E(windowed, 0) -NIF_ATOM_TO_ENUM_FUNCTION(atom_to_window_fullscreen, Uint32, WINDOW_FULLSCREEN_ENUM) +static NIF_ATOM_TO_ENUM_FUNCTION(atom_to_window_fullscreen, Uint32, WINDOW_FULLSCREEN_ENUM) // create_window -- cgit v1.2.3