diff options
author | Ken Matsui <26405363+matken11235@users.noreply.github.com> | 2019-09-12 08:48:18 +0900 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-09-11 18:48:18 -0500 |
commit | dc3cee7cf3d49ad592139042a8e15e3905e55ee9 (patch) | |
tree | 4b2c73cbe54e1120443b8f2891d7cad19e059e64 /src/base | |
parent | e173f47af5ab1c7245c11e0f8d0711cfba79c90a (diff) |
Fix not to output all warnings (#2778)
Fix syntax error when --language-bindings is java
Replace __attribute__((__unused__)) with CVC4_UNUSED macro
Signed-off-by: matken11235 <26405363+matken11235@users.noreply.github.com>
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/exception.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/exception.h b/src/base/exception.h index 51829c86c..704ca928e 100644 --- a/src/base/exception.h +++ b/src/base/exception.h @@ -125,15 +125,15 @@ inline std::ostream& operator<<(std::ostream& os, const Exception& e) template <class T> inline void CheckArgument(bool cond, const T& arg, const char* tail) CVC4_PUBLIC; -template <class T> inline void CheckArgument(bool cond, const T& arg, - const char* tail) { +template <class T> inline void CheckArgument(bool cond, const T& arg CVC4_UNUSED, + const char* tail CVC4_UNUSED) { if(__builtin_expect( ( !cond ), false )) { \ throw ::CVC4::IllegalArgumentException("", "", ""); \ } \ } template <class T> inline void CheckArgument(bool cond, const T& arg) CVC4_PUBLIC; -template <class T> inline void CheckArgument(bool cond, const T& arg) { +template <class T> inline void CheckArgument(bool cond, const T& arg CVC4_UNUSED) { if(__builtin_expect( ( !cond ), false )) { \ throw ::CVC4::IllegalArgumentException("", "", ""); \ } \ |