Blender Git Commit Log

Git Commits -> Revision 2199a3e

Revision 2199a3e by Sergey Sharybin (master)
July 18, 2015, 08:49 (GMT)
CMake: Add option to enable -Werror cflag in some areas

It is rather annoying attitude nowadays to use const qualifier all over the
place, including using it for multi-dimensional arrays. This isn't really
supported in GCC prior to version 5.0 because it considers such an arrays
to be a "pointer to a const pointer" which gives implicit casting errors.

It's not possible to disable this particular type of warnings treated as
errors in any GCC version prior to 5.0 as well, meaning currently usage of
-Werror globally in Blender code is not possible at all.

This commit makes it possible to use -Werror in areas which are complaint
with older GCC versions. New advanced CMake options are:

- WITH_COMPOSITOR_WERROR
- WITH_LIBMV_WERROR
- WITH_CYCLES_WERROR

Commit Details:

Full Hash: 2199a3e38b1cf5956bd65e1d4ba38a3c50a4bed0
Parent Commit: 086ae3e
Lines Changed: +46, -8

5 Modified Paths:

/CMakeLists.txt (+16, -8) (Diff)
/extern/libmv/CMakeLists.txt (+5, -0) (Diff)
/intern/cycles/CMakeLists.txt (+5, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+14, -0) (Diff)
/source/blender/compositor/CMakeLists.txt (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021