aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
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