Re: Help needed to fix open-vm-tools for GCC 6 to unblock Rawhide Workstation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2016-04-24 at 10:56 -0700, Adam Williamson wrote:
> On Sat, 2016-04-23 at 06:42 -0700, John Reiser wrote:
> > GCC 6 does not like this:
> > > 
> > > #define VMW_BIT_MASK(shift) (((1 << (shift - 1)) << 1) - 1)
> > > 

How about handling 32 as a special case:

#define VMW_BIT_MASK(shift) ((shift==32)?0xffffffff:((1U << shift) - 1))

	Jon
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux