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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Mateus Morais Dias de Souza from comment #4)
> I figured it out. My build script was something like this:
> ```bash
> set -e
> gcc main.c -o main
> ./main
> ```
> for some reason gcc was not warning about my unseen error,

Because you didn't tell it to.

Use -Wall to enable warnings. I asked you to read https://gcc.gnu.org/bugs/
before reporting the bug, and one of the things that tells you to do is enable
warnings.

Reply via email to