summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/binaryen-c.cpp6
-rw-r--r--src/binaryen-c.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp
index b0250a270..e2ad349a0 100644
--- a/src/binaryen-c.cpp
+++ b/src/binaryen-c.cpp
@@ -1946,7 +1946,7 @@ void BinaryenModuleOptimize(BinaryenModuleRef module) {
passRunner.run();
}
-int BinaryenGetOptimizeLevel() {
+int BinaryenGetOptimizeLevel(void) {
if (tracing) {
std::cout << " BinaryenGetOptimizeLevel();\n";
}
@@ -1962,7 +1962,7 @@ void BinaryenSetOptimizeLevel(int level) {
globalPassOptions.optimizeLevel = level;
}
-int BinaryenGetShrinkLevel() {
+int BinaryenGetShrinkLevel(void) {
if (tracing) {
std::cout << " BinaryenGetShrinkLevel();\n";
}
@@ -1978,7 +1978,7 @@ void BinaryenSetShrinkLevel(int level) {
globalPassOptions.shrinkLevel = level;
}
-int BinaryenGetDebugInfo() {
+int BinaryenGetDebugInfo(void) {
if (tracing) {
std::cout << " BinaryenGetDebugInfo();\n";
}
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index f2027fd1c..6256f59d8 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -652,7 +652,7 @@ void BinaryenModuleOptimize(BinaryenModuleRef module);
// Gets the currently set optimize level. Applies to all modules, globally.
// 0, 1, 2 correspond to -O0, -O1, -O2 (default), etc.
-int BinaryenGetOptimizeLevel();
+int BinaryenGetOptimizeLevel(void);
// Sets the optimization level to use. Applies to all modules, globally.
// 0, 1, 2 correspond to -O0, -O1, -O2 (default), etc.
@@ -660,7 +660,7 @@ void BinaryenSetOptimizeLevel(int level);
// Gets the currently set shrink level. Applies to all modules, globally.
// 0, 1, 2 correspond to -O0, -Os (default), -Oz.
-int BinaryenGetShrinkLevel();
+int BinaryenGetShrinkLevel(void);
// Sets the shrink level to use. Applies to all modules, globally.
// 0, 1, 2 correspond to -O0, -Os (default), -Oz.
@@ -668,7 +668,7 @@ void BinaryenSetShrinkLevel(int level);
// Gets whether generating debug information is currently enabled or not.
// Applies to all modules, globally.
-int BinaryenGetDebugInfo();
+int BinaryenGetDebugInfo(void);
// Enables or disables debug information in emitted binaries.
// Applies to all modules, globally.