File cvs-format.patch of Package cvs

--- cvs-1.12.12/src/cvs.h
+++ cvs-1.12.12/src/cvs.h
@@ -566,7 +566,7 @@
 void check_entries (char *dir);
 void close_module (DBM * db);
 void copy_file (const char *from, const char *to);
-void fperrmsg (FILE * fp, int status, int errnum, char *message,...);
+void fperrmsg (FILE * fp, int status, int errnum, char *message,...) __attribute__((__format__(printf,4,5)));
 
 int ign_name (char *name);
 void ign_add (char *ign, int hold);
--- cvs-1.12.12/src/subr.h
+++ cvs-1.12.12/src/subr.h
@@ -69,7 +69,7 @@
 #ifdef SUPPORT_OLD_INFO_FMT_STRINGS
 char *format_cmdline (bool oldway, const char *srepos, const char *format, ...);
 #else /* SUPPORT_OLD_INFO_FMT_STRINGS */
-char *format_cmdline (const char *format, ...);
+char *format_cmdline (const char *format, ...) __attribute__((__format__(printf,1,2)));
 #endif /* SUPPORT_OLD_INFO_FMT_STRINGS */
 
 bool isabsolute (const char *filename);
openSUSE Build Service is sponsored by