mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +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.
|
It avoids possible compiler warnings.
|
||||||
|
|
||||||
For functions, place the attribute after the declaration, just before the
|
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.
|
argument declaration.
|
||||||
|
|
||||||
void my_unused_function (G_GNUC_UNUSED gint unused_argument,
|
void my_unused_function (G_GNUC_UNUSED gint unused_argument,
|
||||||
|
Loading…
Reference in New Issue
Block a user