mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 19:08:07 +08:00

The file API code used unsigned long to hold the major version in most places, but not all. Some places used unsigned int, and an important one of those is the cmFileApi::BuildVersion() function. As a result, it has never been safe for a large value not representable by an unsigned int to be used in these variables. Convert all of the file API version number variables and function arguments to use unsigned int consistently. This avoids any size mismatch warnings when passing values around. They also don't need to be unsigned long, as we never expect version numbers to be anything even close to what an unsigned int cannot represent.
13 lines
384 B
C++
13 lines
384 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <cm3p/json/value.h>
|
|
|
|
class cmFileAPI;
|
|
|
|
extern Json::Value cmFileAPICMakeFilesDump(cmFileAPI& fileAPI,
|
|
unsigned int version);
|