summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChoe Hwanjin <choe.hwanjin@gmail.com>2023-04-29 12:10:05 +0900
committerChoe Hwanjin <choe.hwanjin@gmail.com>2023-04-29 12:10:05 +0900
commitf359fe6b3d98a4b389f98c95d9cb35d408331454 (patch)
tree5a8aecd5a43989c22d81870e49d6e74b92ec8502 /tests
parent17fadb604110ab666e62b26401ffca57d2cb3dca (diff)
downloadibus-hangul-f359fe6b3d98a4b389f98c95d9cb35d408331454.tar.gz
test: Clean up 'unused variable' compiler warning
Diffstat (limited to 'tests')
-rw-r--r--tests/ibus-hangul.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ibus-hangul.c b/tests/ibus-hangul.c
index 4375f90..027c19c 100644
--- a/tests/ibus-hangul.c
+++ b/tests/ibus-hangul.c
@@ -206,6 +206,8 @@ window_inserted_text_cb (GtkEntryBuffer *buffer,
const gchar *test;
GtkEntry *entry = GTK_ENTRY (data);
+ (void)code;
+
#if !GTK_CHECK_VERSION (3, 22, 16)
if (n_loop % 2 == 1) {
n_loop = 0;
@@ -217,7 +219,6 @@ window_inserted_text_cb (GtkEntryBuffer *buffer,
/* Run test case */
const gchar *p = chars;
const gchar *output = m_test_cases[index].output;
- guint j = 0;
gboolean valid_output = TRUE;
if (0 != g_strcmp0 (p, output))