From owner-freebsd-questions Tue Jul 24 23:53:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail17.messagelabs.com (mail17.messagelabs.com [62.231.131.67]) by hub.freebsd.org (Postfix) with SMTP id 1A7B037B405 for ; Tue, 24 Jul 2001 23:53:44 -0700 (PDT) (envelope-from rdls@satamatics.com) X-VirusChecked: Checked Received: (qmail 15359 invoked from network); 25 Jul 2001 06:52:08 -0000 Received: from smtp-6.star.net.uk (212.125.75.75) by server-3.tower-17.messagelabs.com with SMTP; 25 Jul 2001 06:52:08 -0000 Received: (qmail 30591 invoked from network); 25 Jul 2001 06:53:42 -0000 Received: from unallocated.star.net.uk (HELO ns.hq.satamatics.net) (62.231.144.7) by smtp-6.star.net.uk with SMTP; 25 Jul 2001 06:53:42 -0000 Received: from matrix.satamatics.net (matrix.satamatics.net [10.24.1.1]) by ns.hq.satamatics.net (8.11.3/8.11.3) with ESMTP id f6P7v9u06689 for ; Wed, 25 Jul 2001 07:57:10 GMT (envelope-from rdls@satamatics.com) Subject: RE: applixware Date: Wed, 25 Jul 2001 07:53:17 +0100 Message-ID: <703AB71471B6024CB86D219058DB64FB02E14B@matrix.satamatics.net> MIME-Version: 1.0 X-MS-Has-Attach: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MS-TNEF-Correlator: Thread-Topic: applixware Thread-Index: AcEU1DQeoTgq8AqfRy2bjDFjdVr/bgAAXuZQ From: "Richard Smith" To: "Mike Meyer" content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Cc: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: Mike Meyer [mailto:mwm@mired.org] > Richard Smith types: > > From: Mike Meyer [mailto:mwm@mired.org] > > > Richard Smith types: > > > > > From: Mike Meyer [mailto:mwm@mired.org] > > > > > Richard Smith types: > > > > > > > #include > > > > > > > int getresuid(uid_t *a, uid_t *b, uid_t *c) { return 1; } > > > > > > Pretty, but: > > > > > > int getresuid(uid_t *, uid_t *, uid_t *) { return 1; } > > > > > > would be better. I don't like sloppy code either ;-) > > > > > That doesn't compile for me - it complains about the=20 > > > paramenter name > > > > > being omitted. I agree that it would be better to omit=20 > > > them, but the > > > > > compiler won't let me. If you can tell me how to make it=20 > > > do that, I'd > > > > > appreciate it. > > > > Would you beleive it? The reason I adopted the practice=20 > of omitting > > > > unused > > > > parameters in the first place, was because the compiler=20 > > > used to warn me=20 > > > > about it (this was back in the 3.x days).=20 > > > > I've just discovered that the version of cc/gcc (2.95.3)=20 > > > that comes with > > > > 4.3-RELEASE doesn't care if I do or I don't, (with any -W=20 > > > settings) :-/ > > > > So which compiler/version are you using? > > > What was on 4-STABLE as of late June. It identifies itself as > > > 2.95.3. I'm not using any -W switch, and trying "-Wall"=20 > doesn't change > > > anything. > >=20 > > Intriguing. What's the exact command line + file + error message? >=20 > cc -Wall -shared -fPIC -DPIC -o getresuid.so getresuid.c > getresuid.c: In function `getresuid': > getresuid.c:8: parameter name omitted > getresuid.c:8: parameter name omitted > getresuid.c:8: parameter name omitted >=20 > I get the same results if -Wall is omitted. SOLUTION: rename getresuid.c to getresuid.cc, contrary to=20 my original post :-(=20 Sorry, die hard c++ programmer here. -- Richard Smith Network Systems Director Satamatics Ltd Green Lane, Tewkesbury, GL20 8HD, United Kingdom Tel: +44 1684 278610 Fax: +44 1684 278611 _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message