Skip to content

Commit dd6dc4d

Browse files
Suppress
1 parent a0a0f89 commit dd6dc4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/cfg/gtk.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ void validCode(int argInt, GHashTableIter * hash_table_iter, GHashTable * hash_t
3636
// cppcheck-suppress checkLibraryNoReturn
3737
g_assert_not_reached();
3838
}
39-
gconstpointer p = GINT_TO_POINTER(1);
39+
// cppcheck-suppress constVariablePointer
40+
gpointer p = GINT_TO_POINTER(1);
4041
int i = GPOINTER_TO_INT(p);
4142
// cppcheck-suppress knownConditionTrueFalse
4243
if (i == 1) {}
@@ -575,4 +576,4 @@ void g_tree_test() {
575576
const GTree *tree2 = g_tree_new((GCompareFunc)g_strcmp0);
576577
printf("%p\n", tree2);
577578
// cppcheck-suppress memleak
578-
}
579+
}

0 commit comments

Comments
 (0)