aras-p / ClangBuildAnalyzer

Clang build analysis tool using -ftime-trace
The Unlicense
970 stars 61 forks source link

Add a missing include of <stdio.h> #18

Closed stolyaroleh closed 4 years ago

stolyaroleh commented 4 years ago

Fixes the following error when building with Clang 9 and libc++ on Linux:

clang++  -O2 -std=c++14  -o build/src/Allocator.o -c src/Allocator.cpp
src/Allocator.cpp:45:13: error: use of undeclared identifier 'printf'
            printf("ERROR: failed to allocate %zu bytes via mmap\n", count);
            ^
1 error generated.
stolyaroleh commented 4 years ago

Relevant: https://github.com/aras-p/ClangBuildAnalyzer/pull/12#issuecomment-534241073