diff options
author | Mike Pall <mike> | 2018-01-29 13:06:13 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2018-01-29 13:06:13 +0100 |
commit | d4ee80342770d1281e2ce877f8ae8ab1d99e6528 (patch) | |
tree | cd8db1f5da7f2bfbecc4092f2646665128dad227 /dynasm/dasm_arm.h | |
parent | b03a56f28ec360bbcf43091afd0607890a4a33c7 (diff) | |
download | luajit2-d4ee80342770d1281e2ce877f8ae8ab1d99e6528.tar.gz |
Fix GCC 7 -Wimplicit-fallthrough warnings.
Diffstat (limited to 'dynasm/dasm_arm.h')
-rw-r--r-- | dynasm/dasm_arm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dynasm/dasm_arm.h b/dynasm/dasm_arm.h index a43f7c66..1d404ccd 100644 --- a/dynasm/dasm_arm.h +++ b/dynasm/dasm_arm.h @@ -254,6 +254,7 @@ void dasm_put(Dst_DECL, int start, ...) case DASM_IMMV8: CK((n & 3) == 0, RANGE_I); n >>= 2; + /* fallthrough */ case DASM_IMML8: case DASM_IMML12: CK(n >= 0 ? ((n>>((ins>>5)&31)) == 0) : @@ -371,6 +372,7 @@ int dasm_encode(Dst_DECL, void *buffer) break; case DASM_REL_LG: CK(n >= 0, UNDEF_LG); + /* fallthrough */ case DASM_REL_PC: CK(n >= 0, UNDEF_PC); n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base) - 4; |