From fc102289543631b711bc0bbd65c0090262b170b9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 25 Dec 2012 21:18:14 -0800 Subject: [PATCH] c-xvasprintf: Fix "implicit declaration of function" GCC warning. * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for c_vasprintf() prototype. --- ChangeLog | 6 ++++++ lib/c-xvasprintf.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 211cc59595..a454de2d47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-12-25 Ben Pfaff + + c-xvasprintf: Fix "implicit declaration of function" GCC warning. + * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for + c_vasprintf() prototype. + 2012-12-24 Ben Pfaff c-vasprintf: Fix "empty declaration" warning reported by GCC. diff --git a/lib/c-xvasprintf.c b/lib/c-xvasprintf.c index 87be542247..b345c39273 100644 --- a/lib/c-xvasprintf.c +++ b/lib/c-xvasprintf.c @@ -22,6 +22,7 @@ #include #include +#include "c-vasprintf.h" #include "xalloc.h" char * -- 2.39.5