From d112119fd119b66a627cfe0ae13840b43acaaba0 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 6 Aug 2004 04:35:48 +0000 Subject: [PATCH] Fix warnings. --- stepmania/src/SDL_SaveJPEG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/SDL_SaveJPEG.cpp b/stepmania/src/SDL_SaveJPEG.cpp index b4c48d09f6..2aaf2405d3 100644 --- a/stepmania/src/SDL_SaveJPEG.cpp +++ b/stepmania/src/SDL_SaveJPEG.cpp @@ -49,7 +49,7 @@ static void init_destination( jpeg::j_compress_ptr cinfo ) static jpeg::boolean empty_output_buffer( jpeg::j_compress_ptr cinfo ) { my_destination_mgr * dest = (my_destination_mgr *) cinfo->dest; - int nbytes = dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE ); + dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE ); // XXX err dest->pub.next_output_byte = dest->buffer; dest->pub.free_in_buffer = OUTPUT_BUFFER_SIZE; @@ -66,7 +66,7 @@ static void term_destination (jpeg::j_compress_ptr cinfo) { /* Write data remaining in the buffer */ my_destination_mgr *dest = (my_destination_mgr *) cinfo->dest; - int wrote = dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE - dest->pub.free_in_buffer ); + dest->f->Write( dest->buffer, OUTPUT_BUFFER_SIZE - dest->pub.free_in_buffer ); // XXX err dest->pub.next_output_byte = dest->buffer; dest->pub.free_in_buffer = OUTPUT_BUFFER_SIZE;