Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nemequ@hoplite:~/t$ cat t.c
- int main(void)
- {
- #if defined(TRIGGER_A_DIFFERENT_WARNING)
- int unused;
- #endif
- return 0;
- }
- nemequ@hoplite:~/t$ gcc -Wall -Wextra -Werror -What-the-fuck -o t -c t.c
- gcc: error: unrecognized command line option ‘-What-the-fuck’
- nemequ@hoplite:~/t$ gcc -Wall -Wextra -Werror -Wno-hat-the-fuck -o t -c t.c
- nemequ@hoplite:~/t$ gcc -DTRIGGER_A_DIFFERENT_WARNING -Wall -Wextra -Werror -Wno-hat-the-fuck -o t -c t.c
- t.c: In function ‘main’:
- t.c:4:7: error: unused variable ‘unused’ [-Werror=unused-variable]
- int unused;
- ^
- t.c: At top level:
- cc1: error: unrecognized command line option ‘-Wno-hat-the-fuck’ [-Werror]
- cc1: all warnings being treated as errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement