Skip to content

Commit

Permalink
Fix compiler warnings in MSVC 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
mogemimi committed Dec 6, 2015
1 parent 9f4eebf commit 952c489
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/Pomdog/Utility/Assert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ namespace Assertion {

inline constexpr bool ConstexprAssert(
bool condition,
char const* expression,
char const* filename,
int line)
char const* expression)
{
return (assert(condition), condition);
}
Expand All @@ -80,8 +78,8 @@ inline constexpr bool ConstexprAssert(
#if defined(DEBUG)
# // Debug mode
# define POMDOG_CONSTEXPR_ASSERT(expression) \
static_cast<void>(Pomdog::Detail::Assertion::ConstexprAssert(\
static_cast<bool>(expression), #expression, __FILE__, __LINE__))
static_cast<void>(Pomdog::Detail::Assertion::ConstexprAssert( \
static_cast<bool>(expression), #expression))
#else
# // Release mode
# define POMDOG_CONSTEXPR_ASSERT(expression) static_cast<void const>(0)
Expand Down

0 comments on commit 952c489

Please sign in to comment.