commit:     7261a618b03699cbbeac56b1e43463af7328b186
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 13 21:54:10 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Aug 13 21:54:10 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=7261a618

wrapper.c: inhibit "unused argc" warning

Before the change the warning was:
  wrapper.c: In function 'main':
  wrapper.c:281:14: warning: unused parameter 'argc' [-Wunused-parameter]
   int main(int argc, char *argv[])
            ~~~~^~~~

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 wrapper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wrapper.c b/wrapper.c
index b00e818..c245dbb 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -281,6 +281,7 @@ static void modify_path(struct wrapper_data *data)
 int main(int argc, char *argv[])
 {
        struct wrapper_data data;
+       (void)argc; /* unused variable */
 
        memset(&data, 0, sizeof(data));
 

Reply via email to