Civil / OpenJK

Community effort to maintain and improve Jedi Academy + Jedi Outcast released by Raven Software
GNU General Public License v2.0
0 stars 0 forks source link

Clang fails to build JK2 #5

Open Civil opened 8 years ago

Civil commented 8 years ago
/home/civil/src/OpenJK/codeJK2/game/Q3_Interface.cpp:8629:8: error: comparison between pointer and integer ('char *' and 'int')
                if ( VALIDSTRING( value ) == false )
                     ^~~~~~~~~~~~~~~~~~~~
/home/civil/src/OpenJK/codeJK2/game/g_local.h:85:52: note: expanded from macro 'VALIDSTRING'
#define VALIDSTRING( a )        ( ( a != NULL ) && ( a[0] != '\0' ) )
                                                     ~~~~ ^  ~~~~
Civil commented 8 years ago

Looks like it should be

if ( VALIDSTRING( *value ) == false )

because value is char * and VALIDSTRING expects char