Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. nemequ@hoplite:~/t$ cat t.c
  2. int main(void)
  3. {
  4. #if defined(TRIGGER_A_DIFFERENT_WARNING)
  5. int unused;
  6. #endif
  7. return 0;
  8. }
  9. nemequ@hoplite:~/t$ gcc -Wall -Wextra -Werror -What-the-fuck -o t -c t.c
  10. gcc: error: unrecognized command line option ‘-What-the-fuck’
  11. nemequ@hoplite:~/t$ gcc -Wall -Wextra -Werror -Wno-hat-the-fuck -o t -c t.c
  12. nemequ@hoplite:~/t$ gcc -DTRIGGER_A_DIFFERENT_WARNING -Wall -Wextra -Werror -Wno-hat-the-fuck -o t -c t.c
  13. t.c: In function ‘main’:
  14. t.c:4:7: error: unused variable ‘unused’ [-Werror=unused-variable]
  15. int unused;
  16. ^
  17. t.c: At top level:
  18. cc1: error: unrecognized command line option ‘-Wno-hat-the-fuck’ [-Werror]
  19. cc1: all warnings being treated as errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement