• Davi Arnaut's avatar
    Bug#53445: Build with -Wall and fix warnings that it generates · 4f59204b
    Davi Arnaut authored
    Introduce a MySQL maintainer/developer mode that enables
    a set of warning options for the C/C++ compiler. This mode
    is intended to help improve the overall quality of the code.
    
    The warning options are:
    
    C_WARNINGS="-Wall -Wextra -Wunused -Wwrite-strings -Werror"
    CXX_WARNINGS="$C_WARNINGS -Wno-unused-parameter"
    
    Since -Wall is essentially a moving target, autoconf checks
    are not run with warning options enabled, in particualr -Werror.
    This decision might be revisited in the future. The patch also
    fixes a mistake in the makefiles, where automake CXXFLAGS would
    be set to CFLAGS.
    4f59204b
Makefile.am 1.71 KB