diff --git a/CMakeLists.txt b/CMakeLists.txt index 348f71945..c2443ef83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -615,8 +615,8 @@ IF (CMAKE_BUILD_TYPE STREQUAL "Release") ENDIF (BUILD_ANDROID) ENDIF (CMAKE_COMPILER_IS_GNUCXX) IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - # Use of -O4 requires use of gold linker & LLVM-gold plugin, which might - # well not be present / in use and without which files will compile, but + # Use of -O4 requires use of gold linker & LLVM-gold plugin, which might + # well not be present / in use and without which files will compile, but # not link ('file not recognized') so explicitly check for support INCLUDE(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-O4" HAVE_LTO_SUPPORT) @@ -663,10 +663,10 @@ IF (MSVC) ADD_DEFINITIONS("-D_VARIADIC_MAX=10") ENDIF (MSVC) -# GCC is not strict enough by default, so enable most of the warnings. IF (UNIX) + # GCC is not strict enough by default, so enable most of the warnings. SET(CMAKE_CXX_FLAGS - "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter") + "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter") ENDIF (UNIX) # Use a larger inlining threshold for Clang, since it hobbles Eigen, diff --git a/docs/source/least_squares_fit.png b/docs/source/least_squares_fit.png index 7984b9bc5..7dad67315 100644 Binary files a/docs/source/least_squares_fit.png and b/docs/source/least_squares_fit.png differ diff --git a/docs/source/non_robust_least_squares_fit.png b/docs/source/non_robust_least_squares_fit.png index aa0ba7e11..643d162e3 100644 Binary files a/docs/source/non_robust_least_squares_fit.png and b/docs/source/non_robust_least_squares_fit.png differ diff --git a/docs/source/robust_least_squares_fit.png b/docs/source/robust_least_squares_fit.png index 55279f370..89003c9f6 100644 Binary files a/docs/source/robust_least_squares_fit.png and b/docs/source/robust_least_squares_fit.png differ diff --git a/docs/source/tutorial.rst b/docs/source/tutorial.rst index eac50b456..29457326e 100644 --- a/docs/source/tutorial.rst +++ b/docs/source/tutorial.rst @@ -193,7 +193,7 @@ Which is added to the :class:`Problem` as: .. code-block:: c++ CostFunction* cost_function = - new NumericDiffCostFunction( + new NumericDiffCostFunction( new NumericDiffCostFunctor) problem.AddResidualBlock(cost_function, NULL, &x);