[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 1ef40dd 06/14: Handle the exit code to avoid
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 1ef40dd 06/14: Handle the exit code to avoid the unused result compilation warning |
Date: |
Sat, 10 Oct 2020 11:07:12 -0400 (EDT) |
branch: master
commit 1ef40ddc4fd957b6f66a6b7d1e8e1c56a8332a42
Author: Ilya Sinitsyn <isinitsyn@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Handle the exit code to avoid the unused result compilation warning
---
main_cgi.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/main_cgi.cpp b/main_cgi.cpp
index 7ef87bf..dace41d 100644
--- a/main_cgi.cpp
+++ b/main_cgi.cpp
@@ -99,7 +99,12 @@ int try_main(int argc, char* argv[])
if(argc == 2 && argv[1] == std::string("--capture"))
{
- std::system("set > settings");
+ int exit_code = std::system("set > settings");
+ if(EXIT_SUCCESS != exit_code)
+ {
+ std::cerr << "Failed to execute 'set' command;";
+ return EXIT_FAILURE;
+ }
std::ofstream os("stdin.txt", ios_out_trunc_binary());
os << std::cin.rdbuf();
std::cout
- [lmi-commits] [lmi] master b21f123 01/14: Don't link ws2_32 lib for native Linux build of XML libraries, (continued)
- [lmi-commits] [lmi] master b21f123 01/14: Don't link ws2_32 lib for native Linux build of XML libraries, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master faa2234 09/14: Improve GitHub CI tests build speed, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 711d483 10/14: Disable lmi building with SO attributes for the native CI build, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 10256f5 05/14: Use set_toolchain.sh in the coding rules test script, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 628d547 07/14: Fix lmi building step in GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master deabd16 08/14: Add native Linux build variant to GitHub CI workflows, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master b615b7b 14/14: fixup! Set PATH and LD_LIBRARY_PATH in the GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 6164366 02/14: Fix configuring wxPdfDoc under Linux, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master bf80fc8 11/14: Use env instead of set for the native Linux build, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 86ba7a9 13/14: Set PATH and LD_LIBRARY_PATH in the GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 1ef40dd 06/14: Handle the exit code to avoid the unused result compilation warning,
Greg Chicares <=
- [lmi-commits] [lmi] master 4485a27 12/14: Remove the warning message for the native Linux build, Greg Chicares, 2020/10/10