diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d4513e7..464ac5e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,10 @@ cmake_minimum_required(VERSION 3.1.0) -# Use newer policies if available, -# up to most recent tested version of CMake +# Use newer policies if available, up to most recent tested version of CMake. if(${CMAKE_VERSION} VERSION_LESS 3.11) - cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) + cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) else() - cmake_policy(VERSION 3.11) + cmake_policy(VERSION 3.11) endif() # Determine if fmt is built as a subproject (using add_subdirectory) diff --git a/include/fmt/core.h b/include/fmt/core.h index 19063bc5..b301b59e 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1102,7 +1102,7 @@ class basic_format_args { static_cast(-signed_types); if (index < num_args) arg = args_[index]; - return arg;; + return arg; } if (index > internal::max_packed_args) return arg;