From fdc2d35f95c58591c887e6153271687cf92a9257 Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Wed, 22 Apr 2015 09:02:32 -0600 Subject: misc: Changes to clean up warnings in Release build --- layers/draw_state.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'layers/draw_state.cpp') 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 { -- cgit v1.2.3