[geany/geany] f1b84c: Mention G_GNUC_UNUSED macro. (#1582)
git-noreply at xxxxx
Mon Aug 21 23:38:31 UTC 2017
Author: LarsGit223 <LarsGit223 at users.noreply.github.com>
Committer: elextr <elextr at gmail.com>
Date: Mon, 21 Aug 2017 23:38:31 UTC
Mention G_GNUC_UNUSED macro. (#1582)
Mention G_GNUC_UNUSED as an alternative to `-Wno-unused-parameter`.
5 lines changed, 4 insertions(+), 1 deletions(-)
@@ -229,7 +229,10 @@ to set warning options (as well as anything else e.g. -g -O2).
* Enable warnings - for gcc use '-Wall -Wextra' (and optionally
-Wno-unused-parameter to avoid unused parameter warnings in Glade
+ callbacks). Alternatively you can use the Glib macro G_GNUC_UNUSED
+ to suppress warnings on single parameters, e.g.
+ ``void examplefunction(G_GNUC_UNUSED gchar *foo)``. Also see
* You should try to write ISO C99 code for portability, so always
use C ``/* */`` comments and function_name(void) instead of
function_name(). This is for compatibility with various Unix-like
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits