Raised This Month: $32 Target: $400
 8% 

'typedef' warnings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 09-24-2017 , 15:28   'typedef' warnings
Reply With Quote #1

Hello, i'm compiling with Gcc , linux, are these two warnings just okay ?
What they can cause on running the module ?

PHP Code:
[root@euve256342 usr]# make
gcc amxxmodule.cpp project.cpp -DNDEBUG -O2 -funroll-loops -fomit-frame-pointer -pipe -fvisibility=hidden -fvisibility-inlines-hidden -DLINUX -shared -m32 -lm -ldl -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -DHAVE_STDINT_H -fno-strict-aliasing -fno-exceptions -fno-rtti --Wno-delete-non-virtual-dtor -static-libgcc -D_snprintf=snprintf -D_strcpy=strcpy -D_strcat=strcat -D_snprintf_s=snprintf -D_strncpy=strncpy -D_strncat=strncat -D_stricmp=strcasecmp -D_strcmp=strcmp -D_strncmp=strncmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -Dstricmp=strcasecmp -fpermissive -Wno-unknown-pragmas -Wno-write-strings -Wno-deprecated -Wno-attributes  -I. -Ihlsdk -Imetamod -o project_amxx_i386.so
In file included from 
./sdk_util.h:52:0,
                 
from ./dllapi.h:40,
                 
from ./meta_api.h:41,
                 
from amxxmodule.h:17,
                 
from amxxmodule.cpp:39:
hlsdk/util.h:249:70warning: ‘typedef’ was ignored in this declaration [enabled by default]
 
typedef enum point_hull=0human_hull=1large_hull=2head_hull=};
                                                                      ^
In file included from ./sdk_util.h:52:0,
                 
from ./dllapi.h:40,
                 
from ./meta_api.h:41,
                 
from amxxmodule.h:17,
                 
from project.cpp:2:
hlsdk/util.h:249:70warning: ‘typedef’ was ignored in this declaration [enabled by default]
 
typedef enum point_hull=0human_hull=1large_hull=2head_hull=};
                                                                      ^
[
root@euve256342 usr]
__________________

Last edited by ghost95v; 09-24-2017 at 15:35.
ghost95v is offline
Send a message via Skype™ to ghost95v
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-24-2017 , 16:23   Re: 'typedef' warnings
Reply With Quote #2

Try adding -Wno-unused-local-typedefs to gcc flags.
Did you even Google the warning?
klippy is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 09-24-2017 , 17:03   Re: 'typedef' warnings
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
Try adding -Wno-unused-local-typedefs to gcc flags.
Did you even Google the warning?
In fact no, but thank you works!
__________________

Last edited by ghost95v; 09-24-2017 at 17:03.
ghost95v is offline
Send a message via Skype™ to ghost95v
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-24-2017 , 17:47   Re: 'typedef' warnings
Reply With Quote #4

Quote:
Originally Posted by ghost95v View Post
In fact no
That's the first thing you should do before posting. It took me literally 2 minutes to find that solution.
klippy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode