• Davi Arnaut's avatar
    Bug#12727287: Maintainer mode compilation fails with gcc 4.6 · 017281da
    Davi Arnaut authored
    GCC 4.6 has new -Wunused-but-set-variable flag, which is enabled
    by -Wall, that causes GCC to emit a warning whenever a local variable
    is assigned to, but otherwise unused (aside from its declaration).
    
    Since the maintainer mode uses -Wall and -Werror, source code which
    triggers these warnings will be rejected. That is, these warnings
    become hard errors.
    
    The solution is to fix the code which triggers these specific warnings.
    In most of the cases, this is a welcome cleanup as code which triggers
    this warning is probably dead anyway.
    017281da
mysql_client_test.c 537 KB