Re: Build failed in Jenkins: ceph-master #1762

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

 



On Fri, Feb 9, 2018 at 2:40 PM, Gregory Farnum <gfarnum@xxxxxxxxxx> wrote:
> On Fri, Feb 9, 2018 at 12:54 AM, Willem Jan Withagen <wjw@xxxxxxxxxxx> wrote:
>> Hi Greg,
>>
>> Clang is rather picky on not initing foo and bar...
>> Suggestion for fixing this?
> <snip>
>
>> /home/jenkins/workspace/ceph-master/src/test/fs/mds_types.cc:24:11: error:
>> declaration of variable 'bar' with deduced type 'inode_t' requires an
>> initializer
>>   inode_t bar;
>
> I don't really get what it's asking for. It's talking about "deduced"
> types, but this code isn't relying on "auto" and indeed the line clang
> points to is declaring the type explicitly. And inode_t has a single
> constructor that doesn't take any parameters. Googling is not leading
> me to anything helpful either. I get the idea maybe the environment
> isn't configured quite right, but I'm not sure how...
> You could try sticking some parens in and see if that changes
> anything, but random mutations like that are the only thing I can come
> up with. :/

Perhaps it is deduced because inode_t is now templated and has a
default template argument?

Also, wouldn't "inode_t bar()" be more appropriate than "inode_t
bar{}"? Or does the former not work?

-- 
Patrick Donnelly
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux