gtk_builder_add_from_string uses gsize for length but also accepts -1
Steps to reproduce
N/A, is a design issue.
Current behavior
The function gtk_builder_add_from_string
of GtkBuilder
accepts the argument length
as a gsize
. The documentation states, that one should use -1
for 0-terminated strings. As gsize
is unsigned the compiler gives a warning.
Expected outcome
No compiler warning.
Version information
As far as I can tell, the latest version of GTK is affected
Additional information
https://developer.gnome.org/gtk3/stable/GtkBuilder.html#gtk-builder-add-from-string
Edited by Ghost User