diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-10-22 13:18:38 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-10-22 14:51:45 +0200 |
commit | 2aa51f528fd5d23cc54eca8fbd07e88e7b2993c7 (patch) | |
tree | 307e5e223ff4f1a76fa219e4bb8f8f8add91bc39 /storage/connect/rcmsg.c | |
parent | 9d2e2d753323a934604d25144b9d1ecaf34b47d8 (diff) | |
download | mariadb-git-2aa51f528fd5d23cc54eca8fbd07e88e7b2993c7.tar.gz |
Various compier warnings
gcc 5.4 and 7.1, Debug and Release builds
Diffstat (limited to 'storage/connect/rcmsg.c')
-rw-r--r-- | storage/connect/rcmsg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/connect/rcmsg.c b/storage/connect/rcmsg.c index 75759e03314..895f8f5862b 100644 --- a/storage/connect/rcmsg.c +++ b/storage/connect/rcmsg.c @@ -27,9 +27,9 @@ char *msglang(void); -char *GetMsgid(int id) +const char *GetMsgid(int id) { - char *p = NULL; + const char *p = NULL; // This conditional until a real fix is found for MDEV-7304 #if defined(FRENCH) @@ -55,7 +55,8 @@ char *GetMsgid(int id) int GetRcString(int id, char *buf, int bufsize) { - char *p = NULL, msg[32]; + const char *p = NULL; + char msg[32]; if (!(p = GetMsgid(id))) { sprintf(msg, "ID=%d unknown", id); |