From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e8ef51420f80a908,start X-Google-Attributes: gidfee84,public From: Eric Dumazet Subject: Annoying bug/warning in CXX on Digital Date: 1999/07/29 Message-ID: <37A02650.CA828161@cosmosbay.com>#1/1 X-Deja-AN: 506537153 Cache-Post-Path: news1!unknown@10.65.0.252 Content-Transfer-Encoding: 7bit X-Accept-Language: fr-FR Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@infonie.fr X-Trace: starship.infonie.fr 933242172 3538 10.1.5.10 (29 Jul 1999 09:56:12 GMT) Organization: CosmosBay S.A. Mime-Version: 1.0 NNTP-Posting-Date: 29 Jul 1999 09:56:12 GMT Newsgroups: comp.unix.osf.osf1 Hi group Anyone knows why cxx on Digital Unix 4.0D emits this warning : # cat bug.C typedef void * Opaque ; const Opaque func(void) { return 0 ; } # cxx -c -w0 bug.C cxx: Info: bug.C, line 3: type qualifier on return type is meaningless const Opaque func(void) -------------^ # cxx -V DIGITAL C++ V6.1-029 on DIGITAL UNIX V4.0 (Rev. 878) # Is there a workaround (to keep the -w0 option but supress this kind of warning) Thanks, Eric Dumazet dumazet@cosmosbay.com