Clean up unused variable usage

Unused variables in function calls can be commented out.  Unused
return variables get a new routine `ignore_unused()` that silences the
warnings with zero overhead.
This commit is contained in:
Seth Hillbrand
2021-10-05 10:00:30 -07:00
parent 043c326278
commit 548e5f49bd
29 changed files with 97 additions and 96 deletions
+2 -1
View File
@@ -34,6 +34,7 @@
#include <wx/zstream.h>
#include <advanced_config.h>
#include <ignore.h>
#include <macros.h>
#include <trigo.h>
@@ -535,7 +536,7 @@ void PDF_PLOTTER::closePdfStream()
int rc = fread( inbuf, 1, stream_len, workFile );
wxASSERT( rc == stream_len );
(void) rc;
ignore_unused( rc );
// We are done with the temporary file, junk it
fclose( workFile );