prog.c: In function 'main':
prog.c:8:5: error: 'gets' is deprecated [-Werror=deprecated-declarations]
gets(text);
^
In file included from prog.c:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
cc1: all warnings being treated as errors