Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warning on format string #63

Closed
wants to merge 2 commits into from
Closed

Fix compiler warning on format string #63

wants to merge 2 commits into from

Conversation

BrettDong
Copy link

I was getting compiler warnings on format string type mismatch:

[  6%] Building CXX object CMakeFiles/ClangBuildAnalyzer.dir/src/BuildEvents.cpp.o
/Users/brett/git/ClangBuildAnalyzer/src/BuildEvents.cpp:55:92: warning: format
      specifies type 'long' but the argument has type 'int64_t'
      (aka 'long long') [-Wformat]
  ...t1=%7ld t2=%7ld par=%4i ch=%4zi det=%s\n", i, (int) event.type, event.ts...
        ~~~~                                                         ^~~~~~~~
        %7lld
/Users/brett/git/ClangBuildAnalyzer/src/BuildEvents.cpp:55:102: warning: format
      specifies type 'long' but the argument has type 'long long' [-Wformat]
  ...%7ld par=%4i ch=%4zi det=%s\n", i, (int) event.type, event.ts, event.ts+event.dur...
     ~~~~                                                           ^~~~~~~~~~~~~~~~~~
     %7lld
2 warnings generated.

src/BuildEvents.cpp Outdated Show resolved Hide resolved
@aras-p
Copy link
Owner

aras-p commented Jan 13, 2022

Superseded by #80

@aras-p aras-p closed this Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants