Documentation fixes

Thanks for Stephan Wirth.

Change-Id: I1dc3c0ab15d97888fdfaa3814d80a3c529665731
This commit is contained in:
Sameer Agarwal
2013-05-23 11:01:16 -07:00
parent d4cb94b6d6
commit 395b4e9dea
5 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 53 KiB

+1 -1
View File
@@ -193,7 +193,7 @@ Which is added to the :class:`Problem` as:
.. code-block:: c++
CostFunction* cost_function =
new NumericDiffCostFunction<F4, ceres::CENTRAL, 1, 1, 1>(
new NumericDiffCostFunction<NumericDiffCostFunctor, ceres::CENTRAL, 1, 1, 1>(
new NumericDiffCostFunctor)
problem.AddResidualBlock(cost_function, NULL, &x);