examples/proc_test: fix compilation error
authorEunBong Song <eunb.song@samsung.com>
Wed, 26 Apr 2017 23:56:25 +0000 (08:56 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 14:00:40 +0000 (23:00 +0900)
This patch fixes following compilation errors:

    make[2]: Entering directory `/home/ebsong/tizenrt/apps/examples/proc_test'
CC: proc_test_main.c
    proc_test_main.c:301:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
     int proc_uptime_test()
         ^
    proc_test_main.c:323:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
     int proc_version_test()
         ^
    proc_test_main.c: In function 'proc_test_main':
    proc_test_main.c:361:18: error: unused variable 'filesystem' [-Werror=unused-variable]
      FAR const char *filesystem = NULL;
                      ^
    cc1: all warnings being treated as errors

Change-Id: I011224ee72aac4d04e30fd2ebeb73dc6ce99f3bd
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/examples/proc_test/proc_test_main.c

index 51080db..0c8c2fd 100644 (file)
@@ -298,7 +298,7 @@ int proc_cpuload_test()
 #endif
 
 #ifndef CONFIG_FS_PROCFS_EXCLUDE_UPTIME
-int proc_uptime_test()
+int proc_uptime_test(void)
 {
        char *filepath = NULL;
        int ret;
@@ -320,7 +320,7 @@ int proc_uptime_test()
 #endif
 
 #ifndef CONFIG_FS_PROCFS_EXCLUDE_VERSION
-int proc_version_test()
+int proc_version_test(void)
 {
        char *filepath = NULL;
        int ret;
@@ -358,7 +358,6 @@ int main(int argc, FAR char *argv[])
 int proc_test_main(int argc, char *argv[])
 #endif
 {
-       FAR const char *filesystem = NULL;
        int ret;
 
        printf("Proc Test START!!\n");