clang++ fix.

"C++11 requires lambda with omitted result type to consist of a single return statement"
上级 d897d91b
......@@ -183,7 +183,7 @@ isdirempty(struct inode *dp)
{
dir_init(dp);
int empty = 1;
dp->dir->enumerate([&empty](const strbuf<DIRSIZ> &name, u64 ino) {
dp->dir->enumerate([&empty](const strbuf<DIRSIZ> &name, u64 ino)->bool{
if (!strcmp(name._buf, "."))
return false;
if (!strcmp(name._buf, ".."))
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论