Comment 1 for bug 1641612

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Re: New compilation warnings with GCC 6 (-Wshift-negative-value, -Wdeprecated-declarations)

/mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/mysys/my_lib.c: In function ‘my_dir’:
/mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/mysys/my_lib.c:140:3: error: ‘readdir_r’ is deprecated [-Werror=deprecated-declarations]
   while (!(READDIR(dirp,(struct dirent*) dirent_tmp,dp)))
   ^~~~~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/pthread.h:21,
                 from /mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/include/my_global.h:274,
                 from /mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/mysys/mysys_priv.h:16,
                 from /mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/mysys/my_lib.c:19:
/usr/include/dirent.h:189:12: note: declared here
 extern int __REDIRECT (readdir_r,
            ^