GNOME Bugzilla – Bug 663073
gtk_dialog_new_with_buttons should be G_GNUC_NULL_TERMINATED
Last modified: 2011-11-05 05:27:46 UTC
gtk_dialog_new_with_buttons() is a variable-argument function, where the end of the argument list is indicated by a NULL. It should, therefore, be marked in the header file with the GCC "sentinel" attribute (G_GNUC_NULL_TERMINATED macro), so that the compiler can give a warning if the sentinel value is missing.
Sure, a patch to add that would be welcome.
Created attachment 200478 [details] [review] patch to fix this issue Here you go.
Review of attachment 200478 [details] [review]: Looks good, thanks !
The following fix has been pushed: 8318515 Mark gtk_dialog_new_with_buttons as NULL-terminated
Created attachment 200737 [details] [review] Mark gtk_dialog_new_with_buttons as NULL-terminated