aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-21 10:58:18 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-21 10:58:18 -0800
commitd484101045f135b226bc3c1d3b4948baa356b124 (patch)
tree5e125f0f780c9302a398656d45dbdc2c177cecee /emcc
parent4d715bca8971203dd5a68b15129ef1feaaff5356 (diff)
avoid warning about aliasing function pointers in fastcomp, it has good debug info on assertions 1 and especially 2 anyhow
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 906ccb3a..7743c9a8 100755
--- a/emcc
+++ b/emcc
@@ -1284,7 +1284,7 @@ try:
shared.Settings.LINKABLE = 1 # TODO: add FORCE_DCE option for the brave people that do want to dce here and in side modules
debug_level = max(debug_level, 2)
- if shared.Settings.ASSERTIONS and shared.Settings.ALIASING_FUNCTION_POINTERS:
+ if not fastcomp and shared.Settings.ASSERTIONS and shared.Settings.ALIASING_FUNCTION_POINTERS:
logging.warning('ALIASING_FUNCTION_POINTERS is on, function pointer comparisons may be invalid across types')
if shared.Settings.STB_IMAGE and final_suffix in JS_CONTAINING_SUFFIXES: