Need to declare asprintf_nowarn as inline to avoid gcc complaining.
[libguestfs.git] / daemon / daemon.h
index 5bf6f35..9aa831a 100644 (file)
@@ -62,7 +62,7 @@ extern void udev_settle (void);
  * printf formatters %Q and %R.  See HACKING file for more
  * info about these.
  */
  * printf formatters %Q and %R.  See HACKING file for more
  * info about these.
  */
-static int
+static inline int
 asprintf_nowarn (char **strp, const char *fmt, ...)
 {
   int r;
 asprintf_nowarn (char **strp, const char *fmt, ...)
 {
   int r;