aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parseTools.js5
-rw-r--r--src/settings.js1
2 files changed, 3 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
diff --git a/src/settings.js b/src/settings.js
index 7df86c90..24c52d59 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -26,6 +26,7 @@ var ASSERTIONS = 1; // Whether we should add runtime assertions, for example to
// exceed it's size, whether all allocations (stack and static) are
// of positive size, etc., whether we should throw if we encounter a bad __label__, i.e.,
// if code flow runs into a fault
+var VERBOSE = 0; // When set to 1, will generate more verbose output during compilation.
var INVOKE_RUN = 1; // Whether we will call run(). Disable if you embed the generated
// code in your own, and will call run() yourself at the right time