From b4d5de0910f60fb01fb98024fd5381db06ca42b0 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 23 Sep 2015 22:21:57 -0400 Subject: [PATCH] squelch compiler warnings about not using bytes_read/bytes_written --- main/BMP.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/BMP.cc b/main/BMP.cc index 74c1b47..c758950 100644 --- a/main/BMP.cc +++ b/main/BMP.cc @@ -41,6 +41,7 @@ bool BMP::open(const char * fileName) // read image information bytes_read = fread(&m_info, sizeof(m_info), 1, m_fp); } + (void)bytes_read; return (m_fp != NULL); } @@ -91,6 +92,7 @@ bool BMP::create(const char * fileName, int width, int height, data_ptr -= 3 * width; } } + (void)bytes_written; return (m_fp != NULL); } @@ -117,6 +119,7 @@ void BMP::read(unsigned char * buf) data_ptr -= row_data_bytes; } } + (void)bytes_read; } void BMP::close()