aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-20 09:43:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-20 09:43:11 -0700
commit96f46bba62e44eefa6ddf4ec031ed8725e95fb12 (patch)
tree0c0f8f590d8fc7309446824cc8cb53b7ed9d5c8a /src/parseTools.js
parentf8f95c6626bbd21f4f7c6f65ad5d23865964a091 (diff)
VERBOSE option
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 1a04d744..9e295284 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1318,9 +1318,8 @@ function finalizeLLVMFunctionCall(item, noIndexizeFunctions) {
var oldCount = countNormalArgs(oldType);
var newCount = countNormalArgs(newType);
if (oldCount != newCount && oldCount && newCount) {
- if (!ASSERTIONS) {
- warnOnce('Casting a function pointer type to another with a different number of arguments. See more info in the compiler source');
- } else {
+ warnOnce('Casting a function pointer type to another with a different number of arguments. See more info in the compiler source');
+ if (VERBOSE) {
warnOnce('Casting a function pointer type to another with a different number of arguments: ' + oldType + ' vs. ' + newType + ', on ' + item.params[0].ident);
}
// This may be dangerous as clang generates different code for C and C++ calling conventions. The only problem