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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user