Re: "style" question

1999-09-25 Thread Dag-Erling Smorgrav
Neil Blakey-Milner <[EMAIL PROTECTED]> writes: > On Fri 1999-09-17 (18:21), Gregory Bond wrote: > > I'm looking at cleaning up a few compile nits and I'm wondering what the > > officially approved way of silencing "may not be used" warnings: > > > > int > > foo(int flag) > > { > > int j;

Re: "style" question

1999-09-17 Thread Neil Blakey-Milner
On Fri 1999-09-17 (18:21), Gregory Bond wrote: > I'm looking at cleaning up a few compile nits and I'm wondering what the > officially approved way of silencing "may not be used" warnings: > > int > foo(int flag) > { > int j; j = 0; > if (flag) > j = 1; >

Re: "style" question

1999-09-17 Thread Dag-Erling Smorgrav
Gregory Bond writes: > Us humans can see that j is not used without being set, but cc can't. How do > I > remove this warning in a style(9)-compatible way? Initialize j. DES -- Dag-Erling Smorgrav - d...@flood.ping.uio.no To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe

Re: "style" question

1999-09-17 Thread Neil Blakey-Milner
On Fri 1999-09-17 (18:21), Gregory Bond wrote: > I'm looking at cleaning up a few compile nits and I'm wondering what the > officially approved way of silencing "may not be used" warnings: > > int > foo(int flag) > { > int j; j = 0; > if (flag) > j = 1; >

Re: "style" question

1999-09-17 Thread Dag-Erling Smorgrav
Gregory Bond <[EMAIL PROTECTED]> writes: > Us humans can see that j is not used without being set, but cc can't. How do I > remove this warning in a style(9)-compatible way? Initialize j. DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsu

Re: "style" question

1999-09-17 Thread Patryk Zadarnowski
> I'm looking at cleaning up a few compile nits and I'm wondering what the > officially approved way of silencing "may not be used" warnings: > > int > foo(int flag) > { > int j; > > if (flag) > j = 1; > > /* > * This noop statement is enough to

Re: "style" question

1999-09-17 Thread Patryk Zadarnowski
> I'm looking at cleaning up a few compile nits and I'm wondering what the > officially approved way of silencing "may not be used" warnings: > > int > foo(int flag) > { > int j; > > if (flag) > j = 1; > > /* > * This noop statement is enough t