Skip to content

Commit

Permalink
fix conversion warnings; adjust cmake_minimum_required
Browse files Browse the repository at this point in the history
since add_executable is used without sources the minimum required version has to be 3.11.
see: https://cmake.org/cmake/help/v3.11/release/3.11.html#commands
  • Loading branch information
modkin committed Mar 23, 2020
1 parent 5b2550e commit 20c24fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5.1)
cmake_minimum_required(VERSION 3.11)
project(ClangBuildAnalyzer)

add_executable(ClangBuildAnalyzer)
Expand Down
2 changes: 1 addition & 1 deletion src/BuildEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static void DebugPrintEvents(const BuildEvents& events, const BuildNames& names)
for (size_t i = 0; i < events.size(); ++i)
{
const BuildEvent& event = events[EventIndex(int(i))];
printf("%4zi: t=%i t1=%7llu t2=%7llu par=%4i ch=%4zi det=%s\n", i, event.type, event.ts, event.ts+event.dur, event.parent.idx, event.children.size(), std::string(names[event.detailIndex].substr(0,130)).c_str());
printf("%4zi: t=%i t1=%7ld t2=%7ld par=%4i ch=%4zi det=%s\n", i, (int) event.type, event.ts, event.ts+event.dur, event.parent.idx, event.children.size(), std::string(names[event.detailIndex].substr(0,130)).c_str());
}
}

Expand Down

0 comments on commit 20c24fe

Please sign in to comment.