Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Revisions: Issue #2432 All Revisions ] Back to Issue ]
Summary 0002432: Clang warnings in bots.cpp
Revision 2015-09-05 09:35 by cobalt
Description
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1722:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szSkinName' will
      always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szSkinName )
        ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1742:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szClassName'
      will always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szClassName )
        ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Revision 2015-09-03 20:54 by Dusk
Description
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1722:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szSkinName' will
      always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szSkinName )
        ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1742:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szClassName'
      will always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szClassName )
        ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Revision 2015-09-03 20:54 by Dusk
Description
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1722:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szSkinName' will
      always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szSkinName )
        ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1742:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szClassName'
      will always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szClassName )

        ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Revision 2015-09-03 20:53 by Dusk
Description
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1722:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szSkinName' will
      always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szSkinName )
        ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/crimson/dev/zandronum-sandbox/src/bots.cpp:1742:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szClassName'
      will always evaluate to 'true' [-Wpointer-bool-conversion]
        if ( g_BotInfo[m_ulBotInfoIdx]->szClassName )






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker