cvs.gedasymbols.org/archives/browse.cgi | search |
From: | ams AT ludd DOT luth DOT se (Martin Str|mberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: __attribute__((unused)), gcc get's confused...? |
Date: | 25 Jul 1999 08:03:21 GMT |
Organization: | University of Lulea, Sweden |
Message-ID: | <7negc9$1mh$2@news.luth.se> |
References: | <379A22A6 DOT EDF69B49 AT unb DOT ca> |
NNTP-Posting-Host: | queeg.ludd.luth.se |
X-Newsreader: | TIN [UNIX 1.3 950824BETA PL0] |
Lines: | 26 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Endlisnis (s257m AT unb DOT ca) wrote: : 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? Why not take away "__attribute__((unused))"? Do you get any warnings then? Kokkonen, Sinfonia da camera, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |