From b7b4e273d2a79e45e83e8a23a912e2fcea7f793c Mon Sep 17 00:00:00 2001 From: EunBong Song Date: Thu, 27 Apr 2017 08:56:25 +0900 Subject: [PATCH] examples/proc_test: fix compilation error 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 --- apps/examples/proc_test/proc_test_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/examples/proc_test/proc_test_main.c b/apps/examples/proc_test/proc_test_main.c index 51080db..0c8c2fd 100644 --- a/apps/examples/proc_test/proc_test_main.c +++ b/apps/examples/proc_test/proc_test_main.c @@ -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"); -- 2.7.4