Date: Wed, 25 Jul 2001 01:09:45 -0500 From: Mike Meyer <mwm@mired.org> To: "Richard Smith" <rdls@satamatics.com> Cc: "Mike Meyer" <mwm@mired.org>, <questions@freebsd.org> Subject: RE: applixware Message-ID: <15198.25257.367570.572172@guru.mired.org> In-Reply-To: <703AB71471B6024CB86D219058DB64FB02E149@matrix.satamatics.net> References: <703AB71471B6024CB86D219058DB64FB02E149@matrix.satamatics.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Richard Smith <rdls@satamatics.com> types: > > From: Mike Meyer [mailto:mwm@mired.org] > > Richard Smith <rdls@satamatics.com> types: > > > > #include <sys/types.h> > > > > 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. <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15198.25257.367570.572172>