From c306fc01d04f597064f5a098bfd1b64e77c2a335 Mon Sep 17 00:00:00 2001 From: MoAlyousef Date: Sat, 12 Sep 2020 19:20:28 +0300 Subject: [PATCH] missing return --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6faac06..054d7f2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,5 +8,6 @@ int main(int argc, char **argv) try { auto output = cmkr::args::handle_args(argc, argv); return fprintf(stdout, "%s\n", output) < 0 ? EXIT_FAILURE : EXIT_SUCCESS; } catch (const std::exception &e) { - fprintf(stderr, "%s\n", e.what()); -} \ No newline at end of file + (void)fprintf(stderr, "%s\n", e.what()); + return EXIT_FAILURE; +}