aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-10 11:19:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-10 11:19:18 -0700
commit55acf93cfbf0617bdb4db82f9441d179278073c8 (patch)
treefce9ebd98d2b1421665e2157f52c739f9599eb9f /src/parseTools.js
parent73fc3ffcb5bc50db4729b2a9e4565e26c1a462be (diff)
show all dangerous pointer casts only in VERBOSE=1
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index ff2f0744..fa0f251e 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1682,10 +1682,10 @@ function checkBitcast(item) {
function showWarning() {
if (warned) return;
warned = true;
- if (VERBOSE || ASM_JS) {
+ if (VERBOSE) {
warnOnce('Casting potentially incompatible function pointer ' + oldType + ' to ' + newType + ', for ' + item.params[0].ident.slice(1));
} else {
- warnOnce('Casting a function pointer type to a potentially incompatible one (use VERBOSE=1 to see more)');
+ warnOnce('Casting a function pointer type to a potentially incompatible one (use -s VERBOSE=1 to see more)');
}
warnOnce('See https://github.com/kripken/emscripten/wiki/CodeGuidlinesAndLimitations#function-pointer-issues for more information on dangerous function pointer casts');
if (ASM_JS) warnOnce('Incompatible function pointer casts are very dangerous with ASM_JS=1, you should investigate and correct these');