cvs.gedasymbols.org/archives/browse.cgi | search |
Message-ID: | <379A22A6.EDF69B49@unb.ca> |
From: | Endlisnis <s257m AT unb DOT ca> |
X-Mailer: | Mozilla 4.51 [en] (Win98; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | __attribute__((unused)), gcc get's confused...? |
Lines: | 25 |
Date: | Sat, 24 Jul 1999 20:30:01 GMT |
NNTP-Posting-Host: | 209.226.124.230 |
X-Trace: | news21.bellglobal.com 932848201 209.226.124.230 (Sat, 24 Jul 1999 16:30:01 EDT) |
NNTP-Posting-Date: | Sat, 24 Jul 1999 16:30:01 EDT |
Organization: | Sympatico |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I'm having a problem with unused parameters. This code: char **__crt0_glob_function (__attribute__((unused)) char * _argument) {return 0;} void __crt0_load_environment_file(__attribute__((unused)) char *_app_name) {} Produces this output: when run through gxx with "-W -Wall" switches: Lemur.cc:14: warning: `unused' attribute ignored Lemur.cc: In function `char ** __crt0_glob_function(char *)': Lemur.cc:14: warning: unused parameter `char * _argument' Lemur.cc: At top level: Lemur.cc:15: warning: `unused' attribute ignored Lemur.cc: In function `void __crt0_load_environment_file(char *)': Lemur.cc:15: warning: unused parameter `char * _app_name' Can somebody tell me what I'm doing wrong, or what I have to fix to make gcc/gxx ignore an unused parameter? -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |