summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-06-30 14:15:32 +1000
committerAaron Plattner <aplattner@nvidia.com>2011-04-12 15:47:06 -0700
commit712c001afd71c520b567d7292adc3a2af2513c81 (patch)
treec53e26b1d1f578a55201016daaf4962cba7f2505
parentc6347c3198bcd05f282a7ee2ad5954bb4b391a0e (diff)
tcm: move envmsg up into TET_LITE ifndef
fixes ../../../../src/tet3/tcm/tcmfuncs.c: In function ‘tet_tcminit’: ../../../../src/tet3/tcm/tcmfuncs.c:137: warning: unused variable ‘envmsg’ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--src/tet3/tcm/tcmfuncs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tet3/tcm/tcmfuncs.c b/src/tet3/tcm/tcmfuncs.c
index 004e7cd6..abfdb2f4 100644
--- a/src/tet3/tcm/tcmfuncs.c
+++ b/src/tet3/tcm/tcmfuncs.c
@@ -80,6 +80,9 @@ MODIFICATIONS:
Aaron Plattner, April 2010
Fixed warnings when compiled with GCC's -Wall option.
+ Peter Hutterer, June 2010
+ Move envmsg into ifndef TET_LITE define, fixes warning.
+
************************************************************************/
#include <stdio.h>
@@ -131,10 +134,10 @@ char **argv;
struct synreq *synreq, *sp;
int count;
int nsys;
+ static char envmsg[] = "null or not set";
#endif /* -END-LITE-CUT- */
static char tiargs_name[] = "TET_TIARGS";
static char tetroot_name[] = "TET_ROOT";
- static char envmsg[] = "null or not set";
#ifdef NOTRACE
int twarn = 0;
#else