TTimo / GtkRadiant

The open source, cross platform level editor for idtech games
http://icculus.org/gtkradiant/
Other
582 stars 152 forks source link

Fix warning implicit declaration of function #528

Closed Pan7 closed 6 years ago

Pan7 commented 6 years ago

t

ools/quake3/q3data/p3dlib.c:70:12: warning: implicit declaration of function 'Q_filelength' is invalid in C99 [-Wimplicit-function-declaration] p3d.len = filelength( fileno( fp ) ); ^ tools/quake3/q3data/p3dlib.c:35:20: note: expanded from macro 'filelength'

define filelength Q_filelength

               ^

tools/quake3/q3data/p3dlib.c:105:9: warning: implicit declaration of function 'Q_stricmp' is invalid in C99 [-Wimplicit-function-declaration] if ( !_strcmpi( s_token, name ) ) { ^ tools/quake3/q3data/p3dlib.c:34:18: note: expanded from macro '_strcmpi'

define _strcmpi Q_stricmp

             ^

See https://github.com/TTimo/GtkRadiant/issues/467