[flang-commits] [flang] [flang] Fix one legitimate warning found with -Werror (PR #175819)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Jan 13 13:38:29 PST 2026


klausler wrote:

> > I'm surprised to hear that -Werror is on for pre-merge CI of flang-new; it hasn't worked for me in my extremely plain vanilla Linux development environments since late September, until I started cleaning up some warnings recently so that I could re-enable -Werror locally.
> 
> Using the most recent clang for the system compiler? We enable it here:
> 
> https://github.com/llvm/llvm-project/blob/6e0ef1cf74559023eb420624f280c52572e196d3/.ci/monolithic-linux.sh#L63
> 
> Not sure if `flang/` propagates `LLVM_ENABLE_WERROR` or not. If not, we should probably fix that.

Ah, that's the difference; I build with GCC.  Thanks for the tip.

https://github.com/llvm/llvm-project/pull/175819


More information about the flang-commits mailing list