原文:报错解决:error: this statement may fall through [-Werror=implicit-fallthrough=]

下午在编译 grpc时报错如下:utilities blob db blob log reader.cc: : : error: this statement may fall through Werror implicit fallthrough next byte kb size utilities blob db blob log reader.cc: : : note: here case ...

2020-04-04 22:27 0 3728 推荐指数:

查看详情

error: control may reach end of non-void function [-Werror,-Wreturn-type]

编译出现如下错误 这个错误可能和编译器有关(在相同代码情况有的编译器可能不会报错,而有的可能会报错),也可能是因为函数没有返回值导致,比如:下面这个函数,如果输入参数a < b 就会导致函数没有返回值。 ...

Mon Dec 31 06:01:00 CST 2018 0 1056
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM