[4.1] ff52c2a Check format string in some curses implementations

Lasse Karstensen lkarsten at varnish-software.com
Thu Jan 14 15:15:09 CET 2016


commit ff52c2a9cb2326f8e87c8efece920773eab5c170
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