C4477 in DynamoRIOView.cpp
Created by: alexander-pick
I was trying to compile DynamoRIO on Windows 10 with Visual Studio 2017 as a 64 Bit Build. The cmake caused the following warning which was handled as an error (Sorry I use a german VS but I thing the issue ist clear here):
c:\src\dynamorio\tools\drstats\dynamorioview.cpp(429): error C2220: Warnung wird als Fehler interpretiert, es wurde keine object-Datei generiert. [C:\re\src\dynamorio\tools\DRstats\DRstats.vcxproj]
c:\src\dynamorio\tools\drstats\dynamorioview.cpp(429): warning C4477: "_swprintf": Die Formatzeichenfolge "%*.*S" erfordert ein Argument vom Typ "int", das variadic-Argument "1" weist aber den Typ "unsigned __int64" auf.
This is just a very picky type problem so I don't think the warning will cause any issue. I added a "#pragma warning(disable:4477)" on top of the file to successfully build the software.
Maybe a fix for this issue could be implemented in the next version to allow a clean build.