OiO.lk Blog C# Disable warning: the `gets' function is dangerous in GCC through header files?
C#

Disable warning: the `gets' function is dangerous in GCC through header files?


I am using the function gets() in my C code.
My code is working fine but I am getting a warning message

(.text+0xe6): warning: the `gets' function is dangerous and should not be used.

I want this warning message not to pop up. Is there any way?

I am wondering that there might be such possibilities by creating a header file for disabling some warnings. Or is there any option during compiling that can serve my purpose? Or may be there is a particular way of using gets() for this warning not to pop up?



You need to sign in to view this answers

Exit mobile version