Re: waf: compiler flags, uninitalized variable

2025-08-01 Thread Hal Murray via devel
> If I see that sort of code without a comment, I looking for it. Looks like I fatfingered something. That should have been: If I see that sort of code without a comment, I get suspicious wondering if there might be something tricky going on and waste time looking for it. -- These are my opi

Re: waf: compiler flags, uninitalized variable

2025-08-01 Thread Hal Murray via devel
> The other thing I forgot to mention is that sometimes the control-flow > analysis isn't as good in older compilers, leading to complaints about > something being used uninitialized in a case where the code couldn't > actually be reached in the unininitialized case. Unless there's a good > reas

Re: waf: compiler flags, uninitalized variable

2025-08-01 Thread Fred Wright via devel
On Fri, 1 Aug 2025, Hal Murray wrote: devel@ntpsec.org said: Usually, you won't get that type of warning unless you enable it. And usually, you only get that type of warning in an optimized compile, since the dataflow analysis needed to detect it is part of the optimization code. I tried

Re: waf: compiler flags, uninitalized variable

2025-08-01 Thread Hal Murray via devel
devel@ntpsec.org said: > Usually, you won't get that type of warning unless you enable it. And > usually, you only get that type of warning in an optimized compile, since > the dataflow analysis needed to detect it is part of the optimization > code. I tried O3. That found a different maybe-

Re: waf: compiler flags, uninitalized variable

2025-07-31 Thread Hal Murray via devel
Thanks. I was hoping that somebody would be familiar with this area and just recognize what was going on. > Usually, you won't get that type of warning unless you enable it. And > usually, you only get that type of warning in an optimized compile, since > the dataflow analysis needed to det

Re: waf: compiler flags, uninitalized variable

2025-07-30 Thread Fred Wright via devel
On Tue, 29 Jul 2025, Hal Murray via devel wrote: Are we missing one? I had a typo. I was using an uninitialized variable. Modern compilers didn't complain. Old ones did. (I don't set any compiler or loader flags.) What gets checked isn't a monotonic function of the compiler version. Te

Re: waf: compiler flags, uninitalized variable

2025-07-30 Thread Matt Selsky via devel
On Tue, Jul 29, 2025 at 11:22:18PM -0700, Hal Murray via devel wrote: > > Are we missing one? > > I had a typo. I was using an uninitialized variable. Modern compilers > didn't complain. Old ones did. (I don't set any compiler or loader > flags.) Hi Hal, What compiler flag did you want to

waf: compiler flags, uninitalized variable

2025-07-29 Thread Hal Murray via devel
Are we missing one? I had a typo. I was using an uninitialized variable. Modern compilers didn't complain. Old ones did. (I don't set any compiler or loader flags.) -- These are my opinions. I hate spam. ___ devel mailing list devel@ntpse