diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-22 15:47:08 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-22 15:47:08 +0200 |
commit | 5980007e44698071fe71a7e412785b8d04471127 (patch) | |
tree | 909c94fa0c0b6508b8c0353df7cca35bf55a09c0 /Userland/wc.cpp | |
parent | 0deade2883dbbfe63b007fffef113565a56d3ba9 (diff) | |
download | serenity-5980007e44698071fe71a7e412785b8d04471127.zip |
Userland: Fix many compiler warnings.
Diffstat (limited to 'Userland/wc.cpp')
-rw-r--r-- | Userland/wc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/wc.cpp b/Userland/wc.cpp index f9f77f5a7e..c518a0936d 100644 --- a/Userland/wc.cpp +++ b/Userland/wc.cpp @@ -5,9 +5,9 @@ #include <ctype.h> #include <stdio.h> -bool output_chars = false; -bool output_words = false; -bool output_lines = false; +static bool output_chars = false; +static bool output_words = false; +static bool output_lines = false; struct Count { String file; @@ -74,7 +74,7 @@ int main(int argc, char** argv) args_parser.add_arg("c", "Include bytes in count"); args_parser.add_arg("m", "Include chars in count"); args_parser.add_arg("w", "Include words in count"); - CArgsParserResult args = args_parser.parse(argc, (const char**)argv); + CArgsParserResult args = args_parser.parse(argc, (char**)argv); if (args.is_present("l")) { output_lines = true; |