diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/about.c | 5 | ||||
-rw-r--r-- | win32/amd64/Makefile | 2 | ||||
-rw-r--r-- | win32/configdialog.c | 6 | ||||
-rw-r--r-- | win32/main.c | 3 | ||||
-rw-r--r-- | win32/oscilloview.c | 7 | ||||
-rw-r--r-- | win32/toneview.c | 5 | ||||
-rw-r--r-- | win32/x86/Makefile | 2 |
7 files changed, 28 insertions, 2 deletions
diff --git a/win32/about.c b/win32/about.c index ff8f165..344bd30 100644 --- a/win32/about.c +++ b/win32/about.c @@ -24,6 +24,7 @@ static struct { } g; static void on_destroy(HWND hwnd) { + (void)hwnd; DestroyWindow(g.static_main); DestroyWindow(g.static_info); DestroyWindow(g.static_help); @@ -50,6 +51,7 @@ static void update_status(void) { } static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { + (void)cs; RECT wr = { .left = 0, .top = 0, @@ -121,11 +123,14 @@ static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { } static void on_activate(HWND hwnd, bool activate, HWND targetwnd, WINBOOL state) { + (void)targetwnd; + (void)state; if (activate) g_currentdlg = hwnd; else g_currentdlg = 0; } static void on_command(HWND hwnd, int id, HWND hwnd_c, UINT code) { + (void)hwnd_c; if (code == BN_CLICKED && (id == ID_OK)) { DestroyWindow(hwnd); } diff --git a/win32/amd64/Makefile b/win32/amd64/Makefile index fb1393f..805ca8b 100644 --- a/win32/amd64/Makefile +++ b/win32/amd64/Makefile @@ -17,7 +17,7 @@ PREFIX=$(ARCH)-w64-mingw32- CC=$(PREFIX)gcc WINDRES=$(PREFIX)windres STRIP=$(PREFIX)strip -CFLAGS=-std=c99 -O2 -Wall -Werror -Wextra -pedantic -Wno-unused-parameter -Wno-missing-field-initializers -I../.. \ +CFLAGS=-std=c99 -O2 -Wall -Werror -Wextra -pedantic -I../.. \ $(addprefix -D,$(DEFINES)) SSECFLAGS=-mssse3 -O3 LIBS=-mwindows -municode \ diff --git a/win32/configdialog.c b/win32/configdialog.c index 82ca5b5..3d15220 100644 --- a/win32/configdialog.c +++ b/win32/configdialog.c @@ -104,6 +104,7 @@ static LRESULT groupbox_wndproc( } static void on_destroy(HWND hwnd) { + (void)hwnd; DestroyWindow(g.radio_ppz8_none); DestroyWindow(g.radio_ppz8_linear); DestroyWindow(g.radio_ppz8_sinc); @@ -130,6 +131,8 @@ static void update_ssg_mix(void) { } static void on_command(HWND hwnd, int id, HWND hwnd_c, UINT code) { + (void)hwnd; + (void)hwnd_c; switch (id) { case ID_CHECK_FM_HIRES_SIN: fmplayer_config.fm_hires_sin = Button_GetCheck(g.check_fm_hires_sin); @@ -195,6 +198,7 @@ static void on_command(HWND hwnd, int id, HWND hwnd_c, UINT code) { } static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { + (void)cs; RECT wr; wr.left = 0; wr.right = WIN_W; @@ -337,6 +341,8 @@ static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { } static void on_activate(HWND hwnd, bool activate, HWND targetwnd, WINBOOL state) { + (void)targetwnd; + (void)state; if (activate) g_currentdlg = hwnd; else g_currentdlg = 0; } diff --git a/win32/main.c b/win32/main.c index fa7d7e2..946c7db 100644 --- a/win32/main.c +++ b/win32/main.c @@ -316,6 +316,7 @@ static void toggle_2x(HWND hwnd) { } static bool proc_key(UINT vk, bool down, int repeat) { + (void)repeat; if (down) { if (VK_F1 <= vk && vk <= VK_F12) { if (GetKeyState(VK_CONTROL) & 0x8000U) { @@ -682,6 +683,8 @@ static void on_key(HWND hwnd, UINT vk, BOOL down, int repeat, UINT scan) { } static void on_activate(HWND hwnd, bool activate, HWND targetwnd, WINBOOL state) { + (void)targetwnd; + (void)state; if (activate) g_currentdlg = hwnd; else g_currentdlg = 0; } diff --git a/win32/oscilloview.c b/win32/oscilloview.c index 3414cd4..a4bd8cf 100644 --- a/win32/oscilloview.c +++ b/win32/oscilloview.c @@ -29,6 +29,7 @@ static struct { } g; static void on_destroy(HWND hwnd) { + (void)hwnd; g.oscilloview = 0; timeKillEvent(g.mmtimer); DeleteObject(g.whitepen); @@ -38,10 +39,16 @@ static void on_destroy(HWND hwnd) { static void CALLBACK mmtimer_cb(UINT timerid, UINT msg, DWORD_PTR userptr, DWORD_PTR dw1, DWORD_PTR dw2) { + (void)timerid; + (void)msg; + (void)userptr; + (void)dw1; + (void)dw2; PostMessage(g.oscilloview, WM_USER, 0, 0); } static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { + (void)cs; g.whitepen = CreatePen(PS_SOLID, 1, RGB(255, 255, 255)); ShowWindow(hwnd, SW_SHOW); //SetTimer(hwnd, TIMER_UPDATE, 16, 0); diff --git a/win32/toneview.c b/win32/toneview.c index ab0b3df..b943331 100644 --- a/win32/toneview.c +++ b/win32/toneview.c @@ -48,6 +48,7 @@ static struct { extern HWND g_currentdlg; static void on_destroy(HWND hwnd) { + (void)hwnd; for (int i = 0; i < 6; i++) { DestroyWindow(g.tonelabel[i]); DestroyWindow(g.copybutton[i]); @@ -133,6 +134,7 @@ static LRESULT static_wndproc( } static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { + (void)cs; g.format_disp = -1; RECT wr; wr.left = 0; @@ -200,6 +202,7 @@ static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { } static void on_timer(HWND hwnd, UINT id) { + (void)hwnd; if (id == TIMER_UPDATE) { if (!atomic_flag_test_and_set_explicit( &toneview_g.flag, memory_order_acquire)) { @@ -227,6 +230,8 @@ static void on_timer(HWND hwnd, UINT id) { } static void on_activate(HWND hwnd, bool activate, HWND targetwnd, WINBOOL state) { + (void)targetwnd; + (void)state; if (activate) g_currentdlg = hwnd; else g_currentdlg = 0; } diff --git a/win32/x86/Makefile b/win32/x86/Makefile index 3437d66..6dfc3f5 100644 --- a/win32/x86/Makefile +++ b/win32/x86/Makefile @@ -19,7 +19,7 @@ WINDRES=$(PREFIX)windres STRIP=$(PREFIX)strip CFLAGS=-std=c99 -O2 -Wall -Wextra -Werror -pedantic -I../.. \ $(addprefix -D,$(DEFINES)) \ - -march=i586 -Wno-unused-parameter -Wno-missing-field-initializers + -march=i586 SSECFLAGS=-mssse3 -O3 LIBS=-s -mwindows -municode \ $(addprefix -l,$(LIBBASE)) |