Thomas1995 / Rentz

The project implements the Rentz card game with a collection of mini-games based on trick-taking, using client-server communication and intelligent bots.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix the warnings

Thomas1995 opened this issue · comments

In file included from bot.cpp:5:0:
bot.cpp: In member function ‘Minigame Bot::ChooseMinigame()’:
../util/debug.h:6:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<Minigame>::size_type {aka long unsigned int}’ [-Wformat=]
 #define debug(...) if(DEBUG) {fprintf(stderr, __VA_ARGS__);}
                                                          ^
bot.cpp:55:2: note: in expansion of macro ‘debug’
  debug("I have %d games available\n", games.size());
  ^
../util/debug.h:6:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<Minigame>::size_type {aka long unsigned int}’ [-Wformat=]
 #define debug(...) if(DEBUG) {fprintf(stderr, __VA_ARGS__);}
                                                          ^
bot.cpp:62:2: note: in expansion of macro ‘debug’
  debug("I now have %d games available\n", games.size());
  ^