From a063227e5852711de82db514bca84d12401ed5a8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 12 Aug 2017 12:15:21 -0600 Subject: [PATCH] Eliminate a warning about unused static data. --- examples/ostest/restart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/ostest/restart.c b/examples/ostest/restart.c index 3fd8291a3..1201db948 100644 --- a/examples/ostest/restart.c +++ b/examples/ostest/restart.c @@ -68,8 +68,11 @@ static char * const g_argv[NARGS+1] = NULL }; +#ifndef CONFIG_DISABLE_ENVIRON static const char g_varname[] = "VarName"; static const char g_varvalue[] = "VarValue"; +#endif + static bool g_restarted; /****************************************************************************