AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   'typedef' warnings (https://forums.alliedmods.net/showthread.php?t=301524)

ghost95v 09-24-2017 15:28

'typedef' warnings
 
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]


klippy 09-24-2017 16:23

Re: 'typedef' warnings
 
Try adding -Wno-unused-local-typedefs to gcc flags.
Did you even Google the warning?

ghost95v 09-24-2017 17:03

Re: 'typedef' warnings
 
Quote:

Originally Posted by KliPPy (Post 2550673)
Try adding -Wno-unused-local-typedefs to gcc flags.
Did you even Google the warning?

In fact no, but thank you works!

klippy 09-24-2017 17:47

Re: 'typedef' warnings
 
Quote:

Originally Posted by ghost95v (Post 2550678)
In fact no

That's the first thing you should do before posting. It took me literally 2 minutes to find that solution.


All times are GMT -4. The time now is 13:15.

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