From a9e261599bd0ba0dc0afb087e8795ab15ace69fa Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 17 Jul 2018 08:54:22 -0700 Subject: [PATCH] Minor cleanup --- CMakeLists.txt | 7 +++---- include/fmt/core.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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;