maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #10895
GCC7 warnings
hard to say how serious they are but maybe a good idea to take a look
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/mariadb_config/mariadb_config.c:9:49:
warning: backslash and newline separated by space
#define LIBS "-L/usr/lib64/mysql/ -lmariadb "\
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_lib.c:
In function 'mariadb_get_infov':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_lib.c:3872:30:
warning: this statement may fall through [-Wimplicit-fallthrough=]
*((unsigned long *)arg)= mysql->client_flag;
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_lib.c:3875:3:
note: here
default:
^~~~~~~
In file included from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/plugin/handler_socket/libhsclient/hstcpcli.cpp:13:0:
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/plugin/handler_socket/libhsclient/hstcpcli.hpp:33:14:
warning: 'template<class> class std::auto_ptr' is deprecated
[-Wdeprecated-declarations]
typedef std::auto_ptr<hstcpcli_i> hstcpcli_ptr;
^~~~~~~~
In file included from /usr/include/c++/7/memory:80:0,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/plugin/handler_socket/libhsclient/hstcpcli.hpp:15,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/plugin/handler_socket/libhsclient/hstcpcli.cpp:13:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
template<typename> class auto_ptr;
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/ma_dtoa.c:
In function 'dtoa':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/ma_dtoa.c:1465:14:
warning: this statement may fall through [-Wimplicit-fallthrough=]
leftright= 0;
~~~~~~~~~^~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/ma_dtoa.c:1467:3:
note: here
case 4:
^~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/ma_dtoa.c:1473:14:
warning: this statement may fall through [-Wimplicit-fallthrough=]
leftright= 0;
~~~~~~~~~^~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/ma_dtoa.c:1475:3:
note: here
case 5:
^~~~
At top level:
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/ma_dtoa.c:1161:21:
warning: 'tinytens' defined but not used [-Wunused-const-variable=]
static const double tinytens[]=
^~~~~~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_dyncol.c:
In function 'mariadb_dyncol_val_double':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_dyncol.c:4044:7:
warning: this statement may fall through [-Wimplicit-fallthrough=]
{
^
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_dyncol.c:4060:5:
note: here
case DYN_COL_DATETIME:
^~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_dyncol.c:4050:15:
warning: argument 1 null where non-null expected [-Wnonnull]
*dbl= strtod(str, &end);
^~~~~~~~~~~~~~~~~
In file included from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/include/ma_global.h:168:0,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/libmariadb/mariadb_dyncol.c:64:
/usr/include/stdlib.h:126:15: note: in a call to function 'strtod'
declared here
extern double strtod (const char *__restrict __nptr,
^~~~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/unittest/libmariadb/t_aurora.c:
In function 'test_reconnect':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/libmariadb/unittest/libmariadb/t_aurora.c:100:3:
warning: ignoring return value of 'system', declared with attribute
warn_unused_result [-Wunused-result]
system("/usr/local/aws/bin/aws rds failover-db-cluster
--db-cluster-identifier instance-1-cluster");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/mysys/my_lib.c: In
function 'my_dir':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/mysys/my_lib.c:144:3:
warning: 'readdir_r' is deprecated [-Wdeprecated-declarations]
while (!(READDIR(dirp,(struct dirent*) dirent_tmp,dp)))
^~~~~
In file included from /usr/include/features.h:410:0,
from /usr/include/pthread.h:21,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_global.h:278,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/mysys/mysys_priv.h:19,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/mysys/my_lib.c:19:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/myisamchk.c:
In function 'myisamchk':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/myisamchk.c:1411:22:
warning: '%ld' directive writing between 1 and 10 bytes into a region of
size 8 [-Wformat-overflow=]
sprintf(null_pos,"%ld",(long) keyseg->null_pos+1);
^~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/myisamchk.c:1411:21:
note: directive argument in the range [1, 4294967296]
sprintf(null_pos,"%ld",(long) keyseg->null_pos+1);
^~~~~
In file included from /usr/include/stdio.h:939:0,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_global.h:322,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_base.h:23,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/myisam.h:26,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/myisamdef.h:20,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/fulltext.h:21,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/myisamchk.c:18:
/usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output
between 2 and 11 bytes into a destination of size 8
return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/mi_test3.c:
In function 'test_write':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/mi_test3.c:367:30:
warning: '%7ld' directive writing between 7 and 11 bytes into a region
of size 8 [-Wformat-overflow=]
sprintf((char*) record.id,"%7ld",(long) getpid());
^~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/mi_test3.c:367:29:
note: directive argument in the range [-2147483648, 2147483647]
sprintf((char*) record.id,"%7ld",(long) getpid());
^~~~~~
In file included from /usr/include/stdio.h:939:0,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_global.h:322,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_base.h:23,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/myisam.h:26,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/myisam/mi_test3.c:20:
/usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output
between 8 and 12 bytes into a destination of size 8
return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/maria_chk.c:
In function 'maria_chk':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/maria_chk.c:1703:22:
warning: '%ld' directive writing between 1 and 10 bytes into a region of
size 8 [-Wformat-overflow=]
sprintf(null_pos,"%ld",(long) keyseg->null_pos+1);
^~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/maria_chk.c:1703:21:
note: directive argument in the range [1, 4294967296]
sprintf(null_pos,"%ld",(long) keyseg->null_pos+1);
^~~~~
In file included from /usr/include/stdio.h:939:0,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_global.h:322,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_base.h:23,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/maria.h:22,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/maria_def.h:18,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/ma_fulltext.h:20,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/maria_chk.c:18:
/usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output
between 2 and 11 bytes into a destination of size 8
return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/ma_test3.c:
In function 'test_write':
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/ma_test3.c:365:30:
warning: '%7ld' directive writing between 7 and 11 bytes into a region
of size 8 [-Wformat-overflow=]
sprintf((char*) record.id,"%7ld", (long) getpid());
^~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/ma_test3.c:365:29:
note: directive argument in the range [-2147483648, 2147483647]
sprintf((char*) record.id,"%7ld", (long) getpid());
^~~~~~
In file included from /usr/include/stdio.h:939:0,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_global.h:322,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/my_base.h:23,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/include/maria.h:22,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/maria_def.h:18,
from
/home/builduser/rpmbuild/BUILD/mariadb-10.2.8/storage/maria/ma_test3.c:20:
/usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output
between 8 and 12 bytes into a destination of size 8
return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~