[ofa-general] [PATCH] opensm/osm_console.c: kill warning: defined but not used

Sasha Khapyorsky sashak at voltaire.com
Sat Feb 28 09:31:40 PST 2009


Kill compile warning: osm_console.c:82: warning: 'name_token' defined
but not used

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm/osm_console.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_console.c b/opensm/opensm/osm_console.c
index e1936fb..63c5ea8 100644
--- a/opensm/opensm/osm_console.c
+++ b/opensm/opensm/osm_console.c
@@ -78,10 +78,12 @@ static char *next_token(char **p_last)
 	return strtok_r(NULL, " \t\n\r", p_last);
 }
 
+#ifdef ENABLE_OSM_PERF_MGR
 static char *name_token(char **p_last)
 {
 	return strtok_r(NULL, "\t\n\r", p_last);
 }
+#endif
 
 static void help_command(FILE * out, int detail)
 {
-- 
1.6.1.2.319.gbd9e




More information about the general mailing list