diff --git a/CMakeLists.txt b/CMakeLists.txt index 60db791..8fec137 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required (VERSION 3.1) +project(ncl) + if(MSVC) # Force to always compile with W4 if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]") diff --git a/ncl/nxstaxablock.cpp b/ncl/nxstaxablock.cpp index 10f2c8f..1fc40d3 100644 --- a/ncl/nxstaxablock.cpp +++ b/ncl/nxstaxablock.cpp @@ -276,7 +276,7 @@ void NxsTaxaBlock::CheckCapitalizedTaxonLabel( if (dimNTax < ind) { NxsString e; - e << "Number of stored labels (" << taxLabels.size() << ") exceeds the NTax specified (" << dimNTax<<")."; + e << "Number of stored labels (" << (unsigned)taxLabels.size() << ") exceeds the NTax specified (" << dimNTax<<")."; throw NxsException(e); } if (CapitalizedTaxLabelToNumber(s) != 0)