summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
author0x6a6f7368 <joshua.r.li.98@gmail.com>2018-01-04 00:06:44 -0500
committerGitHub <noreply@github.com>2018-01-04 00:06:44 -0500
commit95d41ddf6c798131cd343099bcc6b3408657e8c6 (patch)
treea3906dee86fa139f5993656e42a0faedfa528b89 /c.html.markdown
parent70a36c9bd970b928adde06afb2bd69f6ba8e5d5c (diff)
Update c.html.markdown
Fixed and improved compiler flag default recommendations.
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 87a047be..cfb93aa8 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -8,6 +8,7 @@ contributors:
- ["Marco Scannadinari", "https://marcoms.github.io"]
- ["Zachary Ferguson", "https://github.io/zfergus2"]
- ["himanshu", "https://github.com/himanshu81494"]
+ - ["Joshua Li", "https://github.com/JoshuaRLi"]
---
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
> tweak to your liking:
>
-> `-Wall -Wextra -Werror -O0 -ansi -pedantic -std=c11`
+> `-Wall -Wextra -Werror -O2 -std=c99 -pedantic`
```c
// Single-line comments start with // - only available in C99 and later.