Report question

Question: How to check if gcc has failed, returned a warning, or succeeded in Bash?