[master] 84f57a3 Check format string in some curses implementations

Federico G. Schwindt fgsch at lodoss.net
Mon Dec 14 20:16:11 CET 2015


commit 84f57a3f541a6922398e25c79f77f828d3d6500e
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Dec 14 18:51:24 2015 +0000

    Check format string in some curses implementations
    
    This is enough to get the warnings fixed in the previous commit on Linux.

diff --git a/include/vcurses.h b/include/vcurses.h
index d24b556..911cf96 100644
--- a/include/vcurses.h
+++ b/include/vcurses.h
@@ -33,6 +33,8 @@
 #elif defined HAVE_NCURSES_CURSES_H
 #  include <ncurses/curses.h>
 #elif defined HAVE_NCURSES_H
+#  define GCC_PRINTF
+#  define GCC_SCANF
 #  include <ncurses.h>
 #elif defined HAVE_CURSES_H
 #  include <curses.h>



More information about the varnish-commit mailing list