Closed cfehse closed 3 years ago
* Changed the declaration of the `sim_send()` function to match the implementation
! Indeed, how did I miss that for so long ? none of our tools (gcc since v7, cppcheck, etc) signaled that inconsistency... and I have -Wall -Wextra etc. since forever. Weird.
The rest also looks good, will merge "soon"
none of our tools (gcc since v7, cppcheck, etc) signaled that inconsistency...
And our for the time being last compiler coming in the next PR (clang on Linux) did not find this declaration mismatch worth mentioning either.
merged, thanks !
Scope
The scope of this PR is to make the source tree configure/compile with Visual Studio 2017 - especially the toolsets v141, v141_xp to be able to create Windows XP binaries with a Microsoft compiler. This MSVC version 19.1 compiler provide the required c99 support to build the sources. Additional c11 features may break this compiler version (like the Embarcadero compiler) but because the changes were minor I find it worth to add the support to the source tree,
What has changed?
Source Files:
CMakeLists.txt
scantool/diag.h
MSVC_VERSION
and_MSVC_VERSION
to< 1910
(Visual Studio 2017) to support the compiler from toolset v141, v141_xp.doc/build_system.txt
scantool\freediag.rc
scantool\diag_test.rc
<winuser.h>
which caused resource compiler errors with the v141 toolsets.scantool/diag_l0_sim.c
sim_send()
function to match the implementation (4. parameter wasconst
in the implementation but not in the declaration). This mismatch was reported as a warning by the v141 toolset compiler. I wonder why no other compiler configuration thought this was worth a warning at all.Tested Environments:
All changes where tested using these environments:
Cppcheck:
Compiler/Build Environment:
Perhaps you like the changes and accept this merge request.
Thanks!
@fenugrec