diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-11-13 16:10:09 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-11-13 16:41:06 +0800 |
commit | 5017c802e8aeda0d61715d2566f6a866311b63e3 (patch) | |
tree | 9249a4cd867e6d51cb6ebdc206c7fc87281c100e /src/main.c | |
parent | 3c8d9314f05ee784886bac4598e5e30bc053a4fc (diff) | |
download | compiler2015-5017c802e8aeda0d61715d2566f6a866311b63e3.tar compiler2015-5017c802e8aeda0d61715d2566f6a866311b63e3.tar.gz compiler2015-5017c802e8aeda0d61715d2566f6a866311b63e3.tar.bz2 compiler2015-5017c802e8aeda0d61715d2566f6a866311b63e3.tar.lz compiler2015-5017c802e8aeda0d61715d2566f6a866311b63e3.tar.xz compiler2015-5017c802e8aeda0d61715d2566f6a866311b63e3.tar.zst compiler2015-5017c802e8aeda0d61715d2566f6a866311b63e3.zip |
Fix the build with --enable-compile-warnings=error
1. Add missing 'const' keyword for string literals.
2. Add missing 'static' keyword for internal functions.
3. Add missing default cases for switch statements.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -6,8 +6,6 @@ extern FILE *yyin; extern AST_NODE *prog; -void printGV(AST_NODE *root, char* fileName); - int main (int argc, char **argv) { if (argc != 2) { |