summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-18 14:55:59 +0200
committerJim Meyering <meyering@redhat.com>2009-08-18 17:20:06 +0200
commit1d8afa2416416acaf8b7ffc500cadfde13e3aca3 (patch)
tree778d5b2f163c66cbcf5ce89f680860cef2632ccb /src/Makefile.am
parent53ce488f380e3dd94c26bf507c5639975125a1ee (diff)
downloadlibguestfs-1d8afa2416416acaf8b7ffc500cadfde13e3aca3.tar.gz
libguestfs-1d8afa2416416acaf8b7ffc500cadfde13e3aca3.tar.xz
libguestfs-1d8afa2416416acaf8b7ffc500cadfde13e3aca3.zip
build: suppress an ignored-write-return-value warning
* bootstrap (modules): Add ignore-value. * src/guestfs.c: Include "ignore-value.h". (stdout_event): Ignore failure to write to stderr. Also, prefer STDERR_FILENO over the literal "2". * src/Makefile.am (libguestfs_la_CPPFLAGS): Include gnulib's .h files. (libprotocol_la_CFLAGS): Remove -Wall -Wno-unused.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 9eb71b9a..8d03a77c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -54,7 +54,7 @@ libprotocol_la_SOURCES = \
guestfs_protocol.c \
guestfs_protocol.h
-libprotocol_la_CFLAGS = -Wall -Wno-unused
+libprotocol_la_CFLAGS =
$(BUILT_SOURCES): stamp-generator
@@ -117,6 +117,8 @@ libguestfs_la_LIBADD = libprotocol.la
libguestfs_la_CFLAGS = -Wall -DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"'
+libguestfs_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib
+
if HAVE_RPCGEN
guestfs_protocol.c: guestfs_protocol.x
rm -f $@-t $@-t2