aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-10-25 10:24:05 +0200
committerBjörn Gustavsson <[email protected]>2011-11-25 10:59:38 +0100
commitcbfee47d852cbf8a8502e5aaffeddb95258b5442 (patch)
tree6b2dfe3ddace76b8587bf68becfccbcb1a160796
parent448cf0cfe686c5bd6c1d28c08807c6c99b4c49d5 (diff)
downloadotp-cbfee47d852cbf8a8502e5aaffeddb95258b5442.tar.gz
otp-cbfee47d852cbf8a8502e5aaffeddb95258b5442.tar.bz2
otp-cbfee47d852cbf8a8502e5aaffeddb95258b5442.zip
beam_emu.c: Use the correct void* type for computed gotos
gcc don't care about the type, but clang does and will issue a warning.
-rw-r--r--erts/emulator/beam/beam_emu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index 68e6383f7f..f440c2e376 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -53,7 +53,7 @@
#else
# define OpCase(OpCode) lb_##OpCode
# define CountCase(OpCode) lb_count_##OpCode
-# define Goto(Rel) goto *(Rel)
+# define Goto(Rel) goto *((void *)Rel)
# define LabelAddr(Label) &&Label
# define OpCode(OpCode) (&&lb_##OpCode)
#endif