Fix the warnings 'old-style function definition' when compile LTP

Signed-off-by: Cui Bixuan <cuibix...@huawei.com>
---
 testcases/commands/ade/ld/f1.c     |    2 +-
 testcases/commands/ade/ld/ldmain.c |    2 +-
 testcases/commands/ade/ld/rd1.c    |    2 +-
 testcases/commands/ade/ld/rf1.c    |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/testcases/commands/ade/ld/f1.c b/testcases/commands/ade/ld/f1.c
index 610fb65..ebb5e10 100644
--- a/testcases/commands/ade/ld/f1.c
+++ b/testcases/commands/ade/ld/f1.c
@@ -1,5 +1,5 @@
 
-void f1()
+void f1(void)
 {
        int i = 69;
        i = i;
diff --git a/testcases/commands/ade/ld/ldmain.c 
b/testcases/commands/ade/ld/ldmain.c
index cac106e..6f9c47a 100644
--- a/testcases/commands/ade/ld/ldmain.c
+++ b/testcases/commands/ade/ld/ldmain.c
@@ -3,7 +3,7 @@
 
 extern void use_s1();
 
-int main()
+int main(void)
 {
        use_s1();
        return (0);
diff --git a/testcases/commands/ade/ld/rd1.c b/testcases/commands/ade/ld/rd1.c
index 969132f..d9496bd 100644
--- a/testcases/commands/ade/ld/rd1.c
+++ b/testcases/commands/ade/ld/rd1.c
@@ -2,7 +2,7 @@
 
 extern int d1;
 
-void use_s1()
+void use_s1(void)
 {
        d1 = d1 + d1;
 }
diff --git a/testcases/commands/ade/ld/rf1.c b/testcases/commands/ade/ld/rf1.c
index 35cb94a..57a23f1 100644
--- a/testcases/commands/ade/ld/rf1.c
+++ b/testcases/commands/ade/ld/rf1.c
@@ -3,7 +3,7 @@
 
 extern void f1();
 
-void use_s1()
+void use_s1(void)
 {
 //      printf("calling function f1");
        f1();
-- 
1.6.0.2


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to