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] Fix CMake version warning and -Wformat warning #319

Merged
merged 1 commit into from
Jan 23, 2022
Merged

[Fix] Fix CMake version warning and -Wformat warning #319

merged 1 commit into from
Jan 23, 2022

Conversation

homalozoa
Copy link
Contributor

Fix

CMake warning

CMake Deprecation Warning at tools/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

and

-Wformat warning

 warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  158 |         mvwprintw( win, i+5, 0, "%2d. %s", i+1, list[i].c_str() );
      |                                  ~~^       ~~~
      |                                    |        |
      |                                    int      size_t {aka long unsigned int}
      |                                  %2ld

Signed-off-by: Homalozoa xuhaiwang@xiaomi.com

Signed-off-by: Homalozoa <xuhaiwang@xiaomi.com>
@facontidavide facontidavide merged commit 5c3445d into BehaviorTree:master Jan 23, 2022
@facontidavide
Copy link
Collaborator

thanks

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.

None yet

2 participants