Bug 1291890 - bd_xlator gets disabled when compiled with -Wall and -Werror
Summary: bd_xlator gets disabled when compiled with -Wall and -Werror
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: build
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raghavendra Talur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-15 19:45 UTC by Raghavendra Talur
Modified: 2018-08-29 03:37 UTC (History)
1 user (show)

Fixed In Version: glusterfs-4.1.3 (or later)
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-29 03:37:23 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Raghavendra Talur 2015-12-15 19:45:57 UTC
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 ();

Comment 1 Vijay Bellur 2015-12-15 19:47:15 UTC
REVIEW: http://review.gluster.org/12975 (build: Avoid lvalue warning from gcc) posted (#1) for review on master by Raghavendra Talur (rtalur)

Comment 2 Vijay Bellur 2015-12-15 19:48:42 UTC
REVIEW: http://review.gluster.org/12975 (build: Avoid unused-value warning from gcc) posted (#2) for review on master by Raghavendra Talur (rtalur)

Comment 3 Mike McCune 2016-03-28 23:30:47 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 4 Amar Tumballi 2018-08-29 03:37:23 UTC
This update is done in bulk based on the state of the patch and the time since last activity. If the issue is still seen, please reopen the bug.


Note You need to log in before you can comment on or make changes to this bug.