Skip to content

Commit

Permalink
openjpeg: Fix some compiler warnings (-Wunused-parameter)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 20, 2016
1 parent 3cacac3 commit 1266daf
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/OpenJPEGImage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,22 @@ using namespace std;
// These are called by OpenJPEG library. This driver then decides to ignore the messages or to process them.
// While not in debug mode errors are processed but warnings and info messages are omitted

static void error_callback(const char *msg, void *client_data){
static void error_callback(const char *msg, void */*client_data*/)
{
stringstream ss;
ss << "ERROR :: OpenJPEG core :: " << msg;
throw string(ss.str());
}

static void warning_callback(const char *msg, void *client_data){
static void warning_callback(const char *msg, void */*client_data*/)
{
#ifdef DEBUG
logfile << "WARNING :: OpenJPEG core :: " << msg << flush;
#endif
}

static void info_callback(const char *msg, void *client_data){
static void info_callback(const char *msg, void */*client_data*/)
{
#ifdef DEBUG
logfile << "INFO :: OpenJPEG core :: " << msg << flush;
#endif
Expand Down Expand Up @@ -82,7 +85,8 @@ void OpenJPEGImage::closeImage(){
/************************************************************************/
// Saves important image information to IIPImage and OpenJPEGImage variables

void OpenJPEGImage::loadImageInfo( int seq, int ang ) throw(string){
void OpenJPEGImage::loadImageInfo(int /*seq*/, int /*ang*/) throw(string)
{

#ifdef DEBUG
Timer timer; timer.start();
Expand Down Expand Up @@ -285,8 +289,11 @@ RawTile OpenJPEGImage::getTile(int seq, int ang, unsigned int res, int layers, u
/************************************************************************/
// Gets selected region from opened picture

void OpenJPEGImage::getRegion(int seq, int ang, unsigned int res, int layers, int x, int y, unsigned int w, unsigned int h, unsigned char* buf) throw (string){

void OpenJPEGImage::getRegion(int /*seq*/, int /*ang*/, unsigned int res,
int layers, int x, int y,
unsigned int w, unsigned int h,
unsigned char* buf) throw (string)
{
#ifdef DEBUG
Timer timer; timer.start();
logfile << "INFO :: OpenJPEG :: getRegion() :: started" << endl << flush;
Expand Down

0 comments on commit 1266daf

Please sign in to comment.