summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-06 22:35:48 +0800
committerruki <[email protected]>2015-06-06 22:35:48 +0800
commit7c091cff74f038381c5e16576afeb7d4713bc917 (patch)
treedd3490039c2d114c471151819d62144d9549546e /tests
parent6222a6ede3f06a0c67eccf0225d0ffb88cf9d4c8 (diff)
add warning and escape verboses
Diffstat (limited to 'tests')
-rw-r--r--tests/console/src/hello1/hello1.c2
-rw-r--r--tests/console/src/hello1/hello1.h2
-rw-r--r--tests/console/src/hello2/hello2.c2
-rw-r--r--tests/console/src/hello2/hello2.h2
-rw-r--r--tests/console/src/hello3/hello3.c2
-rw-r--r--tests/console/src/hello3/hello3.h2
-rw-r--r--tests/console/xmake.xproj4
7 files changed, 10 insertions, 6 deletions
diff --git a/tests/console/src/hello1/hello1.c b/tests/console/src/hello1/hello1.c
index b946071f0..8a1093c5c 100644
--- a/tests/console/src/hello1/hello1.c
+++ b/tests/console/src/hello1/hello1.c
@@ -1,6 +1,6 @@
#include "hello1.h"
-char const* hello1()
+char const* hello1(void)
{
return "hello1";
}
diff --git a/tests/console/src/hello1/hello1.h b/tests/console/src/hello1/hello1.h
index 328f996c3..0916d6bb4 100644
--- a/tests/console/src/hello1/hello1.h
+++ b/tests/console/src/hello1/hello1.h
@@ -2,7 +2,7 @@
extern "C" {
#endif
-char const* hello1();
+char const* hello1(void);
#ifdef __cplusplus
}
diff --git a/tests/console/src/hello2/hello2.c b/tests/console/src/hello2/hello2.c
index 1124ab563..4d2e9c562 100644
--- a/tests/console/src/hello2/hello2.c
+++ b/tests/console/src/hello2/hello2.c
@@ -1,6 +1,6 @@
#include "hello2.h"
-char const* hello2()
+char const* hello2(void)
{
return "hello2";
}
diff --git a/tests/console/src/hello2/hello2.h b/tests/console/src/hello2/hello2.h
index 080c37c66..90e062942 100644
--- a/tests/console/src/hello2/hello2.h
+++ b/tests/console/src/hello2/hello2.h
@@ -2,7 +2,7 @@
extern "C" {
#endif
-char const* hello2();
+char const* hello2(void);
#ifdef __cplusplus
}
diff --git a/tests/console/src/hello3/hello3.c b/tests/console/src/hello3/hello3.c
index 0ccc5015f..0c22929e8 100644
--- a/tests/console/src/hello3/hello3.c
+++ b/tests/console/src/hello3/hello3.c
@@ -1,6 +1,6 @@
#include "hello3.h"
-char const* hello3()
+char const* hello3(void)
{
return "hello3";
}
diff --git a/tests/console/src/hello3/hello3.h b/tests/console/src/hello3/hello3.h
index 0404a4381..c6da59f5e 100644
--- a/tests/console/src/hello3/hello3.h
+++ b/tests/console/src/hello3/hello3.h
@@ -2,7 +2,7 @@
extern "C" {
#endif
-char const* hello3();
+char const* hello3(void);
#ifdef __cplusplus
}
diff --git a/tests/console/xmake.xproj b/tests/console/xmake.xproj
index d830f5a39..bc14881dc 100644
--- a/tests/console/xmake.xproj
+++ b/tests/console/xmake.xproj
@@ -18,16 +18,20 @@ project: console
# the modes
modes: debug
{
+ warning: all
optimize: none
}
modes: release
{
+ cflags: -Wno-error=deprecated-declarations
+ warning: error
optimize: smallest
}
modes: profile
{
+ warning: none
optimize: fastest
}