From owner-freebsd-questions Tue Jul 24 23:37:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id 6D32837B417 for ; Tue, 24 Jul 2001 23:37:10 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 44222 invoked by uid 100); 25 Jul 2001 06:37:09 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15198.26901.80466.316481@guru.mired.org> Date: Wed, 25 Jul 2001 01:37:09 -0500 To: "Richard Smith" Cc: "Mike Meyer" , Subject: RE: applixware In-Reply-To: <703AB71471B6024CB86D219058DB64FB02E14A@matrix.satamatics.net> References: <703AB71471B6024CB86D219058DB64FB02E14A@matrix.satamatics.net> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 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 > > paramenter name > > > > being omitted. I agree that it would be better to omit > > them, but the > > > > compiler won't let me. If you can tell me how to make it > > do that, I'd > > > > appreciate it. > > > Would you beleive it? The reason I adopted the practice of omitting > > > unused > > > parameters in the first place, was because the compiler > > used to warn me > > > about it (this was back in the 3.x days). > > > I've just discovered that the version of cc/gcc (2.95.3) > > that comes with > > > 4.3-RELEASE doesn't care if I do or I don't, (with any -W > > 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" doesn't change > > anything. > > Intriguing. What's the exact command line + file + error message? 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 I get the same results if -Wall is omitted. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message