diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-02 21:13:57 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-02 21:13:57 +0300 |
commit | 5de12ad388b07e536c9c8ea04683e5e16472651b (patch) | |
tree | 93b3e1b5bb86bf1dfc5aa878914e3a9bc771ba6b | |
parent | d8f9699debd435da5e1aef22c94c47154be4e2be (diff) | |
download | ejit-5de12ad388b07e536c9c8ea04683e5e16472651b.tar.gz ejit-5de12ad388b07e536c9c8ea04683e5e16472651b.zip |
fix some warnings with clang
-rw-r--r-- | include/ejit/ejit.h | 2 | ||||
-rw-r--r-- | src/compile/compile.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/ejit/ejit.h b/include/ejit/ejit.h index 2afdc61..b4b20c1 100644 --- a/include/ejit/ejit.h +++ b/include/ejit/ejit.h @@ -104,6 +104,7 @@ static inline bool ejit_int_type(enum ejit_type t) case EJIT_POINTER: return true; default: + break; } return false; @@ -116,6 +117,7 @@ static inline bool ejit_float_type(enum ejit_type t) case EJIT_DOUBLE: return true; default: + break; } return false; diff --git a/src/compile/compile.c b/src/compile/compile.c index 580b7fa..22da25a 100644 --- a/src/compile/compile.c +++ b/src/compile/compile.c @@ -1821,7 +1821,7 @@ static enum jit_operand_abi jit_abi_from(enum ejit_type t) case EJIT_POINTER: return JIT_OPERAND_ABI_POINTER; case EJIT_FLOAT: return JIT_OPERAND_ABI_FLOAT; case EJIT_DOUBLE: return JIT_OPERAND_ABI_DOUBLE; - default: + default: break; } abort(); @@ -1841,7 +1841,7 @@ static size_t arg_offsetof(enum ejit_type t) case EJIT_POINTER: return offsetof(struct ejit_arg, p); case EJIT_FLOAT: return offsetof(struct ejit_arg, f); case EJIT_DOUBLE: return offsetof(struct ejit_arg, d); - default: + default: break; }; abort(); |