parted/parted-stdio.h.patch

19 lines
639 B
Diff

Index: parted-2.4/lib/stdio.in.h
===================================================================
--- parted-2.4.orig/lib/stdio.in.h
+++ parted-2.4/lib/stdio.in.h
@@ -731,11 +731,13 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s
_GL_CXXALIAS_SYS (gets, char *, (char *s));
# undef gets
# endif
+# if HAVE_RAW_DECL_GETS
_GL_CXXALIASWARN (gets);
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+# endif
#endif