aboutsummaryrefslogtreecommitdiff
path: root/win32/toneview.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-01-05 23:30:41 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-01-05 23:30:41 +0900
commit98f4e72f1ae492771a755bf86c88da7c21f20720 (patch)
treeb1c85eadbe23432f956bc3377ea88a8449672175 /win32/toneview.c
parentdf6915f07e6cc13600a750b4fb4a8adf482b45f2 (diff)
removed most compiler warnings
Diffstat (limited to 'win32/toneview.c')
-rw-r--r--win32/toneview.c5
1 files changed, 5 insertions, 0 deletions
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;
}