Update c.html.markdown

How to get information on compiler flags.
This commit is contained in:
0x6a6f7368 2018-01-04 00:15:28 -05:00 committed by GitHub
parent 95d41ddf6c
commit 81a637e1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,11 +20,12 @@ memory management and C will take you as far as you need to go.
> **About compiler flags** > **About compiler flags**
> >
> By default, gcc and clang are pretty quiet about compilation warnings and > By default, gcc and clang are pretty quiet about compilation warnings and
> errors, which can be very useful information. Using some > errors, which can be very useful information. Explicitly using stricter
> stricter compiler flags is recommended. Here is an example you can > compiler flags is recommended. Here are some recommended defaults:
> tweak to your liking:
> >
> `-Wall -Wextra -Werror -O2 -std=c99 -pedantic` > `-Wall -Wextra -Werror -O2 -std=c99 -pedantic`
>
> For information on what these flags do as well as other flags, consult the man page for your C compiler (e.g. `man 1 gcc`) or just search online.
```c ```c
// Single-line comments start with // - only available in C99 and later. // Single-line comments start with // - only available in C99 and later.