summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-14 12:35:50 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-14 12:35:50 -0600
commit70e7ffd840742d6a32562ed4bfd456a023d94250 (patch)
treea5bb570d151bcab117a90d28a03e395cab206d86 /apps/examples
parent09c8278b8677125f5160be9593fccfd53286bbfc (diff)
downloadpx4-nuttx-70e7ffd840742d6a32562ed4bfd456a023d94250.tar.gz
px4-nuttx-70e7ffd840742d6a32562ed4bfd456a023d94250.tar.bz2
px4-nuttx-70e7ffd840742d6a32562ed4bfd456a023d94250.zip
Remove some warnings introduced with the last change
Diffstat (limited to 'apps/examples')
-rw-r--r--apps/examples/touchscreen/tc_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/examples/touchscreen/tc_main.c b/apps/examples/touchscreen/tc_main.c
index 1c20712a3..6a1e62d5f 100644
--- a/apps/examples/touchscreen/tc_main.c
+++ b/apps/examples/touchscreen/tc_main.c
@@ -101,7 +101,9 @@ int tc_main(int argc, char *argv[])
#endif
int fd;
int errval = 0;
+#ifdef CONFIG_EXAMPLES_TOUCHSCREEN_ARCHINIT
int ret;
+#endif
/* If this example is configured as an NX add-on, then limit the number of
* samples that we collect before returning. Otherwise, we never return
@@ -255,9 +257,9 @@ errout_with_dev:
errout_with_tc:
#ifdef CONFIG_EXAMPLES_TOUCHSCREEN_ARCHINIT
arch_tcuninitialize();
-#endif
errout:
+#endif
message("Terminating!\n");
msgflush();
return errval;