aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-19 22:50:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-19 22:50:12 -0700
commitf8f95c6626bbd21f4f7c6f65ad5d23865964a091 (patch)
tree52e23c12f1bc5ea345e22d7f6439e15e58b5f4f6
parent53698855ba5ca8be949ab5cc3233363080296d53 (diff)
do not repeat function pointer casting warnings too often
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 21852c5d..1a04d744 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1321,7 +1321,7 @@ function finalizeLLVMFunctionCall(item, noIndexizeFunctions) {
if (!ASSERTIONS) {
warnOnce('Casting a function pointer type to another with a different number of arguments. See more info in the compiler source');
} else {
- warn('Casting a function pointer type to another with a different number of arguments: ' + oldType + ' vs. ' + newType + ', on ' + item.params[0].ident);
+ 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
// case appears to be passing a structure by value, C will have (field1, field2) as function args, and the