Red Hat Bugzilla – Bug 1291890
bd_xlator gets disabled when compiled with -Wall and -Werror
Last modified: 2016-03-28 19:30:47 EDT
Description of problem:
When configure is run with -Wall and -Werror, bd_xlator is not enabled.
AC_CHECK_LIBS fails because gcc converts a warning into a error.
The exact message from gcc is:
conftest.c: In function 'main':
conftest.c:55:16: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
return lvm_init,lvm_lv_from_name ();
REVIEW: http://review.gluster.org/12975 (build: Avoid lvalue warning from gcc) posted (#1) for review on master by Raghavendra Talur (firstname.lastname@example.org)
REVIEW: http://review.gluster.org/12975 (build: Avoid unused-value warning from gcc) posted (#2) for review on master by Raghavendra Talur (email@example.com)
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see firstname.lastname@example.org with any questions