Merge branch 'g-gnuc-unused-docs' into 'main'

docs: Clarify that G_GNUC_UNUSED can’t be used on definitions

See merge request GNOME/glib!4164
This commit is contained in:
Michael Catanzaro 2024-07-21 01:34:17 +00:00
commit d5f0f2e23e

View File

@ -276,7 +276,8 @@ by application programmers.
It avoids possible compiler warnings.
For functions, place the attribute after the declaration, just before the
semicolon. For arguments, place the attribute at the beginning of the
semicolon. It cannot go in the definition of a function, only the
declaration. For arguments, place the attribute at the beginning of the
argument declaration.
void my_unused_function (G_GNUC_UNUSED gint unused_argument,