From 0f342549152471ec883097108e92a63a015a4a55 Mon Sep 17 00:00:00 2001 From: Ziemowit Zabawa Date: Sun, 3 Apr 2022 17:58:17 +0200 Subject: [PATCH] Fix "warning: control reaches end of non-void function" in decode.cc I discovered that there's no explicit return statement at the end of main function while moving from C++ to Rust in my fork. Bazel doesn't report this warning at all, even with -Wall. --- decode.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/decode.cc b/decode.cc index ba967ae..18e19cf 100644 --- a/decode.cc +++ b/decode.cc @@ -60,4 +60,6 @@ int main(int argc, char** argv) { printf("Failed to write png.\n"); return 1; } + + return 0; }