Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-2601

LP #711125: Compiler warnings in XtraDB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      **Reported in Launchpad by Alexey Kopytov last update 08-03-2011 19:50:45

      I get the following compiler warnings in XtraDB code in lp:percona-server:

      buf/buf0buddy.c: In function buf_buddy_relocate:
      buf/buf0buddy.c:493: warning: ISO C90 forbids mixed declarations and code
      In file included from buf/buf0buf.c:36:
      ./include/buf0buf.ic:1078: warning: unused parameter mtr

      buf/buf0buf.c: In function _increment_page_get_statistics:
      buf/buf0buf.c:84: warning: comparison of unsigned expression < 0 is always false
      buf/buf0buf.c:86: warning: comparison is always false due to limited range of data type

      buf/buf0flu.c: In function buf_flush_buffered_writes:
      buf/buf0flu.c:723: warning: comparison between signed and unsigned
      buf/buf0flu.c: In function buf_flush_post_to_doublewrite_buf:
      buf/buf0flu.c:850: warning: comparison between signed and unsigned
      buf/buf0flu.c:884: warning: comparison between signed and unsigned

      dict/dict0load.c: In function dict_check_tablespaces_and_store_max_id:
      dict/dict0load.c:399: warning: implicit declaration of function trx_sys_sys_space

      fil/fil0fil.c: In function fil_node_open_file:
      fil/fil0fil.c:693: warning: comparison between signed and unsigned
      mv -f .deps/libinnobase_a-eval0eval.Tpo .deps/libinnobase_a-eval0eval.Po
      fsp/fsp0fsp.c: In function xdes_find_bit:
      fsp/fsp0fsp.c:475: warning: comparison between signed and unsigned

      fsp/fsp0fsp.c: In function xdes_get_n_used:
      fsp/fsp0fsp.c:544: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function xdes_is_full:
      fsp/fsp0fsp.c:581: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function xdes_init:
      fsp/fsp0fsp.c:642: warning: comparison between signed and unsigned

      fsp/fsp0fsp.c: In function fsp_alloc_free_page:
      fsp/fsp0fsp.c:1640: warning: comparison between signed and unsigned

      fsp/fsp0fsp.c: In function fseg_find_free_frag_page_slot:
      fsp/fsp0fsp.c:2189: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fseg_find_last_used_frag_page_slot:
      fsp/fsp0fsp.c:2216: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fseg_get_n_frag_pages:
      fsp/fsp0fsp.c:2244: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fseg_create_general:
      fsp/fsp0fsp.c:2348: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fseg_fill_free_list:
      fsp/fsp0fsp.c:2500: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fseg_alloc_free_page_low:
      fsp/fsp0fsp.c:2662: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c:2684: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c:2738: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c:2782: warning: comparison between signed and unsigned

      fsp/fsp0fsp.c: In function fsp_reserve_free_pages:
      fsp/fsp0fsp.c:2954: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fsp_reserve_free_extents:
      fsp/fsp0fsp.c:3037: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fsp_get_available_space_in_free_extents:
      fsp/fsp0fsp.c:3200: warning: comparison between signed and unsigned
      fil/fil0fil.c: In function fil_load_single_table_tablespace:
      fil/fil0fil.c:3781: warning: comparison between signed and unsigned
      fil/fil0fil.c:3801: warning: comparison between signed and unsigned

      fsp/fsp0fsp.c: In function fseg_validate_low:
      fsp/fsp0fsp.c:3839: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c:3865: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c: In function fsp_validate:
      fsp/fsp0fsp.c:4047: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c:4098: warning: comparison between signed and unsigned
      fsp/fsp0fsp.c:4124: warning: comparison between signed and unsigned
      fil/fil0fil.c: At top level:
      fil/fil0fil.c:4972: warning: unused parameter zip_size
      fil/fil0fil.c:4975: warning: unused parameter byte_offset
      fil/fil0fil.c:4978: warning: unused parameter len

      mtr/mtr0mtr.c: In function mtr_memo_note_modification_all:
      mtr/mtr0mtr.c:134: warning: implicit declaration of function buf_flush_note_modification

      os/os0file.c:3394: warning: unused parameter trx

      handler/ha_innodb.cc:6088: warning: comparison of unsigned expression >= 0 is always true

      row/row0mysql.c: In function row_insert_for_mysql:
      row/row0mysql.c:1141: warning: implicit declaration of function innobase_mysql_print_thd

      sync/sync0rw.c:236: warning: unused parameter cfile_name
      sync/sync0rw.c:237: warning: unused parameter cline
      srv/srv0srv.c: In function srv_master_thread:
      srv/srv0srv.c:3087: warning: comparison between signed and unsigned
      sync/sync0sync.c:247: warning: unused parameter cfile_name
      sync/sync0sync.c:248: warning: unused parameter cline
      srv/srv0start.c: In function open_or_create_data_files:
      srv/srv0start.c:1037: warning: comparison between signed and unsigned

      trx/trx0sys.c: In function trx_sys_create_doublewrite_buf:
      trx/trx0sys.c:328: warning: comparison between signed and unsigned
      trx/trx0sys.c:361: warning: comparison between signed and unsigned
      trx/trx0sys.c:362: warning: comparison between signed and unsigned
      trx/trx0sys.c:371: warning: comparison between signed and unsigned
      trx/trx0sys.c:372: warning: comparison between signed and unsigned
      trx/trx0sys.c:380: warning: comparison between signed and unsigned
      trx/trx0sys.c:475: warning: comparison between signed and unsigned
      trx/trx0sys.c:508: warning: comparison between signed and unsigned
      trx/trx0sys.c:509: warning: comparison between signed and unsigned
      trx/trx0sys.c:518: warning: comparison between signed and unsigned
      trx/trx0sys.c:519: warning: comparison between signed and unsigned
      trx/trx0sys.c:527: warning: comparison between signed and unsigned

      trx/trx0sys.c: In function trx_sys_doublewrite_init_or_restore_pages:
      trx/trx0sys.c:650: warning: comparison between signed and unsigned
      trx/trx0sys.c:663: warning: comparison between signed and unsigned

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: