• Davi Arnaut's avatar
    Bug#42733: Type-punning warnings when compiling MySQL -- strict aliasing violations. · c192be20
    Davi Arnaut authored
    Due to the extent of aliasing violations in the MySQL source
    code, at this time it is safer to disable strict aliasing related
    optimizations in release builds.
    
    As of this patch, only GCC enables strict aliasing by default.
    Hence, use the -fno-strict-aliasing option to disable the
    aliasing rules.
    
    cmake/build_configurations/mysql_release.cmake:
      Add -fno-strict-aliasing to release builds.
    c192be20
mysql_release.cmake 8.79 KB