diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 19:05:51 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 19:05:51 +0100 |
commit | 901b7d5d91b3eacda12dad01211b84a28e1a39a6 (patch) | |
tree | 903ad96735d1e3c06406f363969d43b7cbb17f93 /LibC/termcap.cpp | |
parent | 15fb917f28505539b05b9b21de0aae7055a5ab2e (diff) | |
download | serenity-901b7d5d91b3eacda12dad01211b84a28e1a39a6.zip |
Fix a bunch of compiler warnings. Not all, but a lot.
Diffstat (limited to 'LibC/termcap.cpp')
-rw-r--r-- | LibC/termcap.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/LibC/termcap.cpp b/LibC/termcap.cpp index 0efea01895..9d4e0632ac 100644 --- a/LibC/termcap.cpp +++ b/LibC/termcap.cpp @@ -15,6 +15,8 @@ char* BC; int tgetent(char* bp, const char* name) { + (void)bp; + (void)name; #ifdef TERMCAP_DEBUG fprintf(stderr, "tgetent: bp=%p, name='%s'\n", bp, name); #endif @@ -67,7 +69,7 @@ void ensure_caps() caps->set("li", "25"); } -char* tgetstr(char* id, char** area) +char* tgetstr(const char* id, char** area) { ensure_caps(); #ifdef TERMCAP_DEBUG @@ -85,8 +87,9 @@ char* tgetstr(char* id, char** area) return nullptr; } -int tgetflag(char* id) +int tgetflag(const char* id) { + (void)id; #ifdef TERMCAP_DEBUG fprintf(stderr, "tgetflag: '%s'\n", id); #endif @@ -96,7 +99,7 @@ int tgetflag(char* id) return 0; } -int tgetnum(char* id) +int tgetnum(const char* id) { #ifdef TERMCAP_DEBUG fprintf(stderr, "tgetnum: '%s'\n", id); @@ -109,11 +112,15 @@ int tgetnum(char* id) char* tgoto(const char* cap, int col, int row) { + (void)cap; + (void)col; + (void)row; assert(false); } int tputs(const char* str, int affcnt, int (*putc)(int)) { + (void)affcnt; size_t len = strlen(str); for (size_t i = 0; i < len; ++i) putc(str[i]); |