• unknown's avatar
    InnoDB: Remove warnings detected by GCC 4.0.0 · 374850dc
    unknown authored
    
    innobase/fsp/fsp0fsp.c:
      Declare "first" in the scope where it is used, and add dummy return
      statement after ut_error to silence compiler warning.
    innobase/include/dyn0dyn.h:
      Add const qualifier to dyn_push_string().
    innobase/include/dyn0dyn.ic:
      dyn_push_string(): Add const qualifier to str;
      remove intermediate assignment.
    innobase/include/mtr0log.h:
      mlog_write_string(), mlog_catenate_string(): Add const to str
    innobase/log/log0log.c:
      Eliminate variables new_oldest and do_preflush in order to avoid
      warnings about possibly uninitialized variables.
      (new_oldest will now be declared in the scope of usage,
      and do_preflush == (advance != 0).)
    innobase/log/log0recv.c:
      Remove warnings about uninitialized variables.
      Add UNIV_UNLIKELY() hints.
    innobase/mtr/mtr0log.c:
      mlog_write_string(), mlog_catenate_string(): Add const to str
      mlog_write_string(): Add UNIV_UNLIKELY hints to assertion-like tests
    innobase/row/row0sel.c:
      Remove warning about possibly uninitialized variable.
      (Always initialize *out_rec.)
    374850dc
log0recv.c 89.1 KB