mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug #53445 Build with -Wall and fix warnings that it generates
Add -Wall to gcc/g++ Fix most warnings reported in dbg and opt mode.
This commit is contained in:
@@ -269,7 +269,7 @@ int main(int argc,char *argv[])
|
||||
HA_ERRORS *ha_err_ptr;
|
||||
for (code=1 ; code < sys_nerr ; code++)
|
||||
{
|
||||
if (sys_errlist[code][0])
|
||||
if (sys_errlist[code] && sys_errlist[code][0])
|
||||
{ /* Skip if no error-text */
|
||||
printf("%3d = %s\n",code,sys_errlist[code]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user