Update c.html.markdown

Fixed and improved compiler flag default recommendations.
This commit is contained in:
0x6a6f7368 2018-01-04 00:06:44 -05:00 committed by GitHub
parent 70a36c9bd9
commit 95d41ddf6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ contributors:
- ["Marco Scannadinari", "https://marcoms.github.io"] - ["Marco Scannadinari", "https://marcoms.github.io"]
- ["Zachary Ferguson", "https://github.io/zfergus2"] - ["Zachary Ferguson", "https://github.io/zfergus2"]
- ["himanshu", "https://github.com/himanshu81494"] - ["himanshu", "https://github.com/himanshu81494"]
- ["Joshua Li", "https://github.com/JoshuaRLi"]
--- ---
Ah, C. Still **the** language of modern high-performance computing. Ah, C. Still **the** language of modern high-performance computing.
@ -23,7 +24,7 @@ memory management and C will take you as far as you need to go.
> stricter compiler flags is recommended. Here is an example you can > stricter compiler flags is recommended. Here is an example you can
> tweak to your liking: > tweak to your liking:
> >
> `-Wall -Wextra -Werror -O0 -ansi -pedantic -std=c11` > `-Wall -Wextra -Werror -O2 -std=c99 -pedantic`
```c ```c
// Single-line comments start with // - only available in C99 and later. // Single-line comments start with // - only available in C99 and later.