Comment 2 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)

In file included from /home/laurynas/mysql-server/storage/innobase/include/page0page.h:37:0,
                 from /home/laurynas/mysql-server/storage/innobase/include/page0cur.h:32,
                 from /home/laurynas/mysql-server/storage/innobase/include/btr0btr.h:33,
                 from /home/laurynas/mysql-server/storage/innobase/btr/btr0btr.c:26:
/home/laurynas/mysql-server/storage/innobase/include/fsp0fsp.ic: In function 'fsp_flags_get_page_size':
/home/laurynas/mysql-server/storage/innobase/include/fsp0fsp.h:45:10: warning: left shift of negative value [-Wshift-negative-value]
   ((~(~0 << FSP_FLAGS_WIDTH_PAGE_SSIZE)) \
          ^
/home/laurynas/mysql-server/storage/innobase/include/fsp0fsp.h:49:13: note: in expansion of macro 'FSP_FLAGS_MASK_PAGE_SSIZE'
   ((flags & FSP_FLAGS_MASK_PAGE_SSIZE) \
             ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/laurynas/mysql-server/storage/innobase/include/fsp0fsp.ic:59:16: note: in expansion of macro 'FSP_FLAGS_GET_PAGE_SSIZE'
  ulint ssize = FSP_FLAGS_GET_PAGE_SSIZE(flags);
                ^~~~~~~~~~~~~~~~~~~~~~~~