Skip to content

Commit

Permalink
Fixed: A couple of release build compiler warnings
Browse files Browse the repository at this point in the history
Unused parameters.
  • Loading branch information
skyjake committed Mar 31, 2012
1 parent 562db5f commit f3fdfef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/window.cpp
Expand Up @@ -781,7 +781,7 @@ static boolean createContext(void)
}
#endif

static Window* canvasToWindow(Canvas& canvas)
static Window* canvasToWindow(Canvas& DENG_DEBUG_ONLY(canvas))
{
assert(&mainWindow.widget->canvas() == &canvas); /// @todo multiwindow

Expand Down
2 changes: 2 additions & 0 deletions doomsday/libdeng2/include/de/libdeng2.h
Expand Up @@ -66,9 +66,11 @@
# else
# define DENG2_ASSERT(x) assert(x)
# endif
# define DENG2_DEBUG_ONLY(x) x
#else
# define DENG2_NO_DEBUG
# define DENG2_ASSERT(x)
# define DENG2_DEBUG_ONLY(x)
#endif

/**
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/src/core/log.cpp
Expand Up @@ -228,7 +228,7 @@ void Log::beginSection(const char* name)
_sectionStack.append(name);
}

void Log::endSection(const char* name)
void Log::endSection(const char* DENG2_DEBUG_ONLY(name))
{
DENG2_ASSERT(_sectionStack.back() == name);
_sectionStack.takeLast();
Expand Down

0 comments on commit f3fdfef

Please sign in to comment.