From 96bbc5e74142da868f1dd2e49171de862370a40b Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Fri, 16 Jun 2006 00:14:46 +0000
Subject: [PATCH] build menuselect objects with -Wall and remove an unused
 variable

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 build_tools/Makefile            | 6 +++---
 build_tools/menuselect_curses.c | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/build_tools/Makefile b/build_tools/Makefile
index d48017fc26..eb8e6e3a77 100644
--- a/build_tools/Makefile
+++ b/build_tools/Makefile
@@ -15,13 +15,13 @@ else
 endif
 
 menuselect: $(MENUSELECT_OBJS)
-	$(CC) -g -o $@ $(MENUSELECT_OBJS) $(MENUSELECT_LIBS)
+	$(CC) -g -Wall -o $@ $(MENUSELECT_OBJS) $(MENUSELECT_LIBS)
 
 menuselect.o: menuselect.c menuselect.h
-	$(CC) -o $@ $(MENUSELECT_CFLAGS) $<
+	$(CC) -Wall -o $@ $(MENUSELECT_CFLAGS) $<
 
 menuselect_curses.o: menuselect_curses.c menuselect.h
-	$(CC) -o $@ $(MENUSELECT_CFLAGS) $(MENUSELECT_INCLUDE) $<
+	$(CC) -Wall -o $@ $(MENUSELECT_CFLAGS) $(MENUSELECT_INCLUDE) $<
 
 clean:
 	rm -f menuselect *.o
diff --git a/build_tools/menuselect_curses.c b/build_tools/menuselect_curses.c
index 01ac8de8cf..88c4a7a4fe 100644
--- a/build_tools/menuselect_curses.c
+++ b/build_tools/menuselect_curses.c
@@ -160,7 +160,6 @@ static void draw_category_menu(WINDOW *menu, struct category *cat, int start, in
 	int j = 0;
 	struct member *mem;
 	char buf[64];
-	const char *desc = NULL;
 
 	if (!changed) {
 		/* If all we have to do is move the cursor, 
-- 
GitLab