Whamcloud - gitweb
LU-5418 libcfs: only define noop_*_fn when readline is used 52/11252/4
authorFrank Zago <fzago@cray.com>
Mon, 28 Jul 2014 16:56:46 +0000 (11:56 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 15 Aug 2014 15:24:19 +0000 (15:24 +0000)
commit18ad797d5da11a8ce886c8d0cce9b1e043c4c898
tree235ad41d2b8f21ac2e0b7f3667a578924fc4cff0
parentc079e8c57a09419b1e5978dba2a469d6ae4c712c
LU-5418 libcfs: only define noop_*_fn when readline is used

This fixes a compilation break introduced by change 7629b7.
When readline devel is not found on the system,
the code using readline is not used, including
noop_int_fn() and noop_void_fn().
This generates a couple warning about these
function being unused, which breaks the build.

Change-Id: I75b292cd6ad3b04fdd03adcf1886011e23620e8b
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/11252
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/util/parser.c