Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cfg/gtk.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4063,7 +4063,6 @@
<leak-ignore/>
<noreturn>false</noreturn>
<returnValue type="gboolean"/>
Comment thread
Tamaranch marked this conversation as resolved.
Resolved
<use-retval/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
Expand Down
3 changes: 3 additions & 0 deletions test/cfg/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ void validCode(int argInt, GHashTableIter * hash_table_iter, GHashTable * hash_t
// transfer none functions: return value should not be unreffed
const GApplication *app = g_application_get_default();
printf("%p\n", app);

// boolean return value can be ignored (use-retval should not be used)
g_file_set_contents("file", "contents", -1, NULL);
}

void g_malloc_test()
Expand Down
Loading