From 656db3a8e0601ba0a6af303b971111fbbed29906 Mon Sep 17 00:00:00 2001 From: Lalatendu Mohanty Date: Sun, 13 Oct 2013 15:08:10 -0400 Subject: libgfapi: Fix to compilation failure/warnings for examples/glfsxmp.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comilation of glfsxmp.c i.e. "make glfsxmp" was failing with "undefined reference to `clock_gettime'" error. Fixed all compilation warnings for unused variables and wrong formart specifier in printf e.g. : "format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__syscall_slong_t’ [-Wformat]" Also added the compilation steps for glfsxmp.c in the README file Change-Id: I399ec7c9ad7b6412463c89099d63922caef6749e Signed-off-by: Lalatendu Mohanty Reviewed-on: http://review.gluster.org/6085 Reviewed-by: Shyamsundar Ranganathan Reviewed-by: Santosh Pradhan Tested-by: Shyamsundar Ranganathan Reviewed-by: Vijay Bellur --- api/examples/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/examples/Makefile.am') diff --git a/api/examples/Makefile.am b/api/examples/Makefile.am index cfb0d3dff84..05f40ff53ed 100644 --- a/api/examples/Makefile.am +++ b/api/examples/Makefile.am @@ -1,6 +1,6 @@ EXTRA_PROGRAMS = glfsxmp glfsxmp_SOURCES = glfsxmp.c glfsxmp_CFLAGS = $(GLFS_CFLAGS) -Wall -glfsxmp_LDADD = $(GLFS_LIBS) +glfsxmp_LDADD = $(GLFS_LIBS) -lrt EXTRA_DIST = gfapi.py -- cgit