From e58dfd566950668189b49dde4c5ac1179b5fa860 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Wed, 12 Jun 2019 12:45:57 +0200 Subject: [PATCH] configure: silence gcc errors on rte_vhost checks Redirect the entire gcc output to null for rte_vhost test build - this gcc will be run even without any custom options passed to `configure`, so don't bother the user with error messages when he didn't do anything wrong. Change-Id: I05136556ab81d78a6f27edd150b68f6e2b5cd8b5 Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457779 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index bfbba787f..b89ddf429 100755 --- a/configure +++ b/configure @@ -377,7 +377,7 @@ if [ -z "${CONFIG[ENV]}" ]; then if ! echo -e '#include \n' \ 'int main(void) { return rte_vhost_extern_callback_register(0, NULL, NULL); }\n' \ | $BUILD_CMD -c -Wno-deprecated-declarations -Werror \ - -I"${CONFIG[DPDK_DIR]}/include" -; then + -I"${CONFIG[DPDK_DIR]}/include" - &>/dev/null; then echo "Notice: DPDK's rte_vhost not found or version < 19.05, using internal," \ "legacy rte_vhost library." CONFIG[VHOST_INTERNAL_LIB]=y