diff --git a/irdb-libs/libEXEIO/src/exeio_pe.h b/irdb-libs/libEXEIO/src/exeio_pe.h index d2ec01a4aead829f5f623d4d4a968b647b4da2e8..b2a14d9033db51628a9e6ae5595f8ae8cb0982a6 100644 --- a/irdb-libs/libEXEIO/src/exeio_pe.h +++ b/irdb-libs/libEXEIO/src/exeio_pe.h @@ -163,7 +163,7 @@ namespace EXEIO virtual bool isDLL() { return true; } - virtual void* get_pebliss() { assert(e); return (void*)e; } + virtual void* get_pebliss() { assert(e); return static_cast<void*>(e); } private: pe_bliss::pe_base* e; diff --git a/irdb-libs/libIRDB-core/src/cmdstr.hpp b/irdb-libs/libIRDB-core/src/cmdstr.hpp index 1cc08ae6156e6d03def7ab1434db422326a74464..b99a87d3bce18a2b968fa691195cc82f0060c3bd 100644 --- a/irdb-libs/libIRDB-core/src/cmdstr.hpp +++ b/irdb-libs/libIRDB-core/src/cmdstr.hpp @@ -19,7 +19,7 @@ using namespace std; static inline pair<string,int> command_to_string( const string& command) { auto ret=string(); - int exit_code; + int exit_code=0; int cout_pipe[2]; int cerr_pipe[2]; posix_spawn_file_actions_t action; @@ -54,14 +54,14 @@ static inline pair<string,int> command_to_string( const string& command) { if ( plist[0].revents&POLLIN) { const auto bytes_read = read(cout_pipe[0], &buffer[0], buffer.length()); - cout << "read " << bytes_read << " bytes from stdout.\n"; - cout << buffer.substr(0, static_cast<size_t>(bytes_read)) << "\n"; + // cout << "read " << bytes_read << " bytes from stdout.\n"; + // cout << buffer.substr(0, static_cast<size_t>(bytes_read)) << "\n"; ret += buffer.substr(0, static_cast<size_t>(bytes_read)); } else if ( plist[1].revents&POLLIN ) { const auto bytes_read = read(cerr_pipe[0], &buffer[0], buffer.length()); - cout << "read " << bytes_read << " bytes from stderr.\n"; - cout << buffer.substr(0, static_cast<size_t>(bytes_read)) << "\n"; + // cout << "read " << bytes_read << " bytes from stderr.\n"; + // cout << buffer.substr(0, static_cast<size_t>(bytes_read)) << "\n"; ret += buffer.substr(0, static_cast<size_t>(bytes_read)); } else diff --git a/irdb-libs/libIRDB-core/src/fileir.cpp b/irdb-libs/libIRDB-core/src/fileir.cpp index 4d9a65fde0eaaf41a39e5a27c88fc0ad03975bdf..901c2463f7fcaa6d452903b46aa4d5b711710f36 100644 --- a/irdb-libs/libIRDB-core/src/fileir.cpp +++ b/irdb-libs/libIRDB-core/src/fileir.cpp @@ -46,6 +46,7 @@ using namespace std; int command_to_stream(const string& command, ostream& stream) { + cout << "Issuing command: " << command << endl; const auto res = command_to_string(command); stream << res.first << endl;