diff options
| author | Tony Barbour <tony@LunarG.com> | 2015-04-22 09:02:32 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2015-04-22 11:51:35 -0600 |
| commit | fdc2d35f95c58591c887e6153271687cf92a9257 (patch) | |
| tree | 9c48d546d515ff43bf9888061a50fba2d90a311f /layers/draw_state.cpp | |
| parent | e8f49cad9078a58025aefa06bd179e2a2c09ee94 (diff) | |
| download | usermoji-fdc2d35f95c58591c887e6153271687cf92a9257.tar.xz | |
misc: Changes to clean up warnings in Release build
Diffstat (limited to 'layers/draw_state.cpp')
| -rw-r--r-- | layers/draw_state.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index aad27451..2f5e5614 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -1395,7 +1395,8 @@ static void synchAndPrintDSConfig(const VkCmdBuffer cb) #else // WIN32 // Convert dot to svg if dot available if(access( "/usr/bin/dot", X_OK) != -1) { - system("/usr/bin/dot pipeline_dump.dot -Tsvg -o pipeline_dump.svg"); + int retval = system("/usr/bin/dot pipeline_dump.dot -Tsvg -o pipeline_dump.svg"); + assert(retval != -1); } #endif // WIN32 } @@ -2715,7 +2716,8 @@ void drawStateDumpPngFile(char* outFileName) dumpDotFile(g_lastCmdBuffer[getTIDIndex()], "/tmp/tmp.dot"); char dotCmd[1024]; sprintf(dotCmd, "%s /tmp/tmp.dot -Tpng -o %s", dotExe, outFileName); - system(dotCmd); + int retval = system(dotCmd); + assert(retval != -1); remove("/tmp/tmp.dot"); } else { |
