public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/101385] New: -Werror doesn't have effect on Ada frontend
@ 2021-07-09 10:20 mytbk920423 at gmail dot com
  2021-07-09 10:34 ` [Bug ada/101385] " ebotcazou at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mytbk920423 at gmail dot com @ 2021-07-09 10:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101385

            Bug ID: 101385
           Summary: -Werror doesn't have effect on Ada frontend
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mytbk920423 at gmail dot com
  Target Milestone: ---

I try to make the GCC Ada compiler error when there're warnings, but -Werror
doesn't work.

$ gcc -c -O2 -Werror test.adb && echo "Command returns $?"
test.adb:3:22: warning: value not in range of type "MyChar" defined at line 2
test.adb:3:22: warning: "Constraint_Error" will be raised at run time
Command returns 0

$ gnatmake test.adb -cargs -Werror && echo "Command returns $?"
gcc -c -Werror test.adb
test.adb:3:22: warning: value not in range of type "MyChar" defined at line 2
test.adb:3:22: warning: "Constraint_Error" will be raised at run time
gnatbind -x test.ali
gnatlink test.ali
gnatlink: warning: executable name "test" may conflict with shell command
Command returns 0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-14  8:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 10:20 [Bug ada/101385] New: -Werror doesn't have effect on Ada frontend mytbk920423 at gmail dot com
2021-07-09 10:34 ` [Bug ada/101385] " ebotcazou at gcc dot gnu.org
2021-07-09 11:58 ` mytbk920423 at gmail dot com
2021-07-09 15:51 ` ebotcazou at gcc dot gnu.org
2021-07-09 15:51 ` ebotcazou at gcc dot gnu.org
2021-09-14  8:33 ` cvs-commit at gcc dot gnu.org
2021-09-14  8:35 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).