diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-05 14:43:10 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-05 14:43:10 +0000 |
commit | 5100c90860025df47e42d8bd45c9b8162c9aa8d0 (patch) | |
tree | f235462aad9d4f8f8b1ff6de4f2a70cde616b9de /mandocdb.c | |
parent | e78c9199f3e64722b422088627cfd89d0a1dd5cf (diff) | |
download | mandoc-5100c90860025df47e42d8bd45c9b8162c9aa8d0.tar.gz |
Absurdly, the return value of sqlite3_column_text()
is "const unsigned char *", which causes warnings with GCC on Linux.
Explicitly cast to "const char *" to avoid this.
Issue noticed by kristaps@.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1306,10 +1306,10 @@ names_check(void) say("", "%s", sqlite3_errmsg(db)); while (SQLITE_ROW == (irc = sqlite3_step(stmt))) { - name = sqlite3_column_text(stmt, 0); - sec = sqlite3_column_text(stmt, 1); - arch = sqlite3_column_text(stmt, 2); - key = sqlite3_column_text(stmt, 3); + name = (const char *)sqlite3_column_text(stmt, 0); + sec = (const char *)sqlite3_column_text(stmt, 1); + arch = (const char *)sqlite3_column_text(stmt, 2); + key = (const char *)sqlite3_column_text(stmt, 3); say("", "%s(%s%s%s) lacks mlink \"%s\"", name, sec, '\0' == *arch ? "" : "/", '\0' == *arch ? "" : arch, key); |