1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Various compier warnings

gcc 5.4 and 7.1, Debug and Release builds
This commit is contained in:
Sergei Golubchik
2017-10-22 13:18:38 +02:00
parent 9d2e2d7533
commit 2aa51f528f
21 changed files with 48 additions and 210 deletions

View File

@@ -1510,7 +1510,7 @@ static my_bool CheckMemory(PGLOBAL g, UDF_INIT *initid, UDF_ARGS *args, uint n,
if (!(g->Sarea = PlugAllocMem(g, ml))) {
char errmsg[MAX_STR];
sprintf(errmsg, MSG(WORK_AREA), g->Message);
snprintf(errmsg, sizeof(errmsg)-1, MSG(WORK_AREA), g->Message);
strcpy(g->Message, errmsg);
g->Sarea_Size = 0;
return true;