diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2018-01-05 23:30:41 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2018-01-05 23:30:41 +0900 |
commit | 98f4e72f1ae492771a755bf86c88da7c21f20720 (patch) | |
tree | b1c85eadbe23432f956bc3377ea88a8449672175 /win32/about.c | |
parent | df6915f07e6cc13600a750b4fb4a8adf482b45f2 (diff) |
removed most compiler warnings
Diffstat (limited to 'win32/about.c')
-rw-r--r-- | win32/about.c | 5 |
1 files changed, 5 insertions, 0 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); } |