[Gluster-devel] dht-common.c compilation warning from mainline
Raghavendra Gowdappa
rgowdapp at redhat.com
Mon Apr 10 07:53:42 UTC 2017
Its a bug. Got introduced in [1]. Need {} for the body of if. Either me or Poornima will be sending a patch to fix this.
[1] https://review.gluster.org/16902
----- Original Message -----
> From: "Atin Mukherjee" <amukherj at redhat.com>
> To: "Gluster Devel" <gluster-devel at gluster.org>
> Sent: Monday, April 10, 2017 1:06:07 PM
> Subject: [Gluster-devel] dht-common.c compilation warning from mainline
>
> dht-common.c: In function 'dht_opendir':
> dht-common.c:4919:25: warning: this 'if' clause does not guard...
> [-Wmisleading-indentation]
> if (subvolumes[i] != local->first_up_subvol)
> ^~
> dht-common.c:4922:33: note: ...this statement, but the latter is misleadingly
> indented as if it is guarded by the 'if'
> if (ret)
> ^~
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://lists.gluster.org/mailman/listinfo/gluster-devel
More information about the Gluster-devel
mailing list