cvs.gedasymbols.org/archives/browse.cgi | search |
Message-ID: | <37A461F4.E88400AC@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: | Re: __attribute__((unused)), gcc get's confused...? |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 990726093100 DOT 27650E AT is> <379CDE99 DOT 3E957B4 AT unb DOT ca> <7nkach$sak AT cs DOT vu DOT nl> |
Lines: | 19 |
Date: | Sun, 01 Aug 1999 15:02:21 GMT |
NNTP-Posting-Host: | 209.226.124.245 |
X-Trace: | news20.bellglobal.com 933519741 209.226.124.245 (Sun, 01 Aug 1999 11:02:21 EDT) |
NNTP-Posting-Date: | Sun, 01 Aug 1999 11:02:21 EDT |
Organization: | Sympatico |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
mdruiter AT cs DOT vu DOT nl wrote: > Endlisnis <s257m AT unb DOT ca> wrote: > > int main(int argc __attribute__((unused)), char** argv) > > b.cc(1) Error: parse error before `__attribute__' > To tell gcc (and other compilers) that an argument is unused _in C++_ > (*not* in C, use __attribute__((unused)) there!), just do not give the > variable a name: That works perfectly! Thank you. -- (\/) 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 |