diff options
Diffstat (limited to 'app-admin/xtail/files/xtail-2.1_p8-fix-prototype.patch')
-rw-r--r-- | app-admin/xtail/files/xtail-2.1_p8-fix-prototype.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-admin/xtail/files/xtail-2.1_p8-fix-prototype.patch b/app-admin/xtail/files/xtail-2.1_p8-fix-prototype.patch new file mode 100644 index 000000000000..29eff229772f --- /dev/null +++ b/app-admin/xtail/files/xtail-2.1_p8-fix-prototype.patch @@ -0,0 +1,20 @@ +From: Sam James <sam@gentoo.org> +Subject: [PATCH] Fix -Wdeprecated-non-prototype + +xtail.c:365:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] + extern unsigned sleep(); + ^ +/usr/include/unistd.h:464:21: note: conflicting prototype is here +extern unsigned int sleep (unsigned int __seconds); + ^ +1 warning generated. +--- a/xtail.c ++++ b/xtail.c +@@ -362,7 +362,6 @@ int main(int argc, char *argv[]) + * End of checking loop. + */ + { +- extern unsigned sleep(); + (void) fflush(stdout); + (void) sleep(SLEEP_TIME); + } |