From 2f426ac495f4234b97649a591314fe695691cf99 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 17 Aug 2020 19:35:03 +0200 Subject: Format for size_t (in e.g. warnings) From the C standard paragraph 7.21.6.1 The fprintf function ``` z Specifies that a following d, i, o, u, x, or X conversion specifier applies to a size_t or the corresponding signed integer type argument; or that a following n conversion specifier applies to a pointer to a signed integer type corresponding to size_t argument. ``` --- src/doxygen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doxygen.cpp b/src/doxygen.cpp index fdc81fe..4f6e1cf 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -9237,7 +9237,7 @@ static void parseFilesMultiThreading(const std::shared_ptr &root) #endif { std::size_t numThreads = std::thread::hardware_concurrency(); - msg("Processing input using %lu threads.\n",numThreads); + msg("Processing input using %zu threads.\n",numThreads); ThreadPool threadPool(numThreads); using FutureType = std::shared_ptr; std::vector< std::future< FutureType > > results; -- cgit v0.12