Skip to content

Commit 29a493d

Browse files
Merge branch 'danmar:main' into chr_14119
2 parents 49490e3 + cd9d2de commit 29a493d

27 files changed

+557
-300
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,16 @@ add_custom_target(copy_addons ALL
9292
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/addons"
9393
COMMENT "Copying addons files to ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}")
9494

95+
add_custom_target(remove_unsigned_platforms ALL
96+
${CMAKE_COMMAND} -E remove -f
97+
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/platforms/unix32-unsigned.xml"
98+
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/platforms/unix64-unsigned.xml"
99+
COMMENT "Removing unsigned platforms files from ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}")
100+
95101
add_custom_target(copy_platforms ALL
96102
${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/platforms"
97103
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/platforms"
104+
DEPENDS remove_unsigned_platforms
98105
COMMENT "Copying platforms files to ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}")
99106

100107
if(USE_BUNDLED_TINYXML2)

addons/test/misra/misra-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static void misra_10_3(uint32_t u32a, uint32_t u32b) {
725725
res = 0.1f; // 10.3
726726
const char c = '0'; // no-warning
727727
bool b = true; // no-warning
728-
uint32_t u = UINT32_C(10); // 17.3 no-warning
728+
uint32_t u = UINT32_C(10); // no-warning
729729
}
730730

731731
static void misra_10_4(u32 x, s32 y) {

cli/cmdlineparser.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,18 +1608,6 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
16081608
mLogger.printError(errstr);
16091609
return Result::Fail;
16101610
}
1611-
1612-
// TODO: remove
1613-
// these are loaded via external files and thus have Settings::PlatformFile set instead.
1614-
// override the type so they behave like the regular platforms.
1615-
if (platform == "unix32-unsigned") {
1616-
mSettings.platform.type = Platform::Type::Unix32;
1617-
mLogger.printMessage("The platform 'unix32-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix32 --funsigned-char' instead");
1618-
}
1619-
else if (platform == "unix64-unsigned") {
1620-
mSettings.platform.type = Platform::Type::Unix64;
1621-
mLogger.printMessage("The platform 'unix64-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix64 --funsigned-char' instead");
1622-
}
16231611
}
16241612

16251613
if (defaultSign != '\0')

0 commit comments

Comments
 (0)