Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 875913

Summary: glusterfs build with gcc's '-pedantic' flag fails
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: buildAssignee: Avra Sengupta <asengupt>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:55:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
warnings seen on glusterfs none

Description Amar Tumballi 2012-11-12 19:42:24 UTC
Created attachment 643689 [details]
warnings seen on glusterfs

Description of problem:
make CFLAGS="-std=gnu99 -pedantic"

Version-Release number of selected component (if applicable):
mainline (git head is 
commit 128514fcb7f4943e6c97139f873db68a009ae893)

How reproducible:
100%

Steps to Reproduce:
1. build as mentioned above.

Expected results:
Build should succeed

Comment 1 Amar Tumballi 2012-11-16 11:06:51 UTC
look for 'forbids' in the attachment, and try to fix it.

Comment 2 Vijay Bellur 2012-12-20 07:35:42 UTC
CHANGE: http://review.gluster.org/4187 (core: remove all the 'inner' functions in codebase) merged in master by Anand Avati (avati)

Comment 3 Vijay Bellur 2013-01-22 06:17:49 UTC
CHANGE: http://review.gluster.org/4219 (core: fixes for gcc's '-pedantic' flag build) merged in master by Anand Avati (avati)

Comment 4 Vijay Bellur 2013-01-23 19:12:30 UTC
CHANGE: http://review.gluster.org/4186 ("gcc -pedantic": made 'inline' functions as 'static inline' functions) merged in master by Anand Avati (avati)

Comment 5 Amar Tumballi 2013-01-25 05:45:05 UTC
now with latest master, "-std=gnu99 -pedantic" option runs to completion (ofcourse there are warnings, but no errors.