mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
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:
commit
d5f0f2e23e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user