| Issue |
173276
|
| Summary |
[flang][driver] Support `-Werror=`
|
| Labels |
flang
|
| Assignees |
|
| Reporter |
LaserEyess
|
```
./build/bin/flang --version
flang version 21.1.7
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/laser/git/llvm-flang/build/bin
```
`hello.f90`
```fortran
program hello
integer :: a = 4 ! Deliberate unused variable that -Wunused-variable catches
print *, "Hi!!"
end program hello
```
This "works" (it seems to me that no warnings *at all* are supported by flang??)
```
./build/bin/flang -Wall hello.f90
flang-21: warning: argument unused during compilation: '-Wall' [-Wunused-command-line-argument]
```
This fails:
```
./build/bin/flang -Werror=all hello.f90
error: Unknown diagnostic option: -Werror=all
```
Of course, all of this works on gfortran. It would be nice to just have a warning printed for this for portability.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs