summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-16 00:14:46 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-16 00:14:46 +0000
commit96bbc5e74142da868f1dd2e49171de862370a40b (patch)
tree424f2a6ba5d0f5156575d6ea91a8dc1777af93b9 /build_tools
parentaee308b8c38bea79f8ce50009e5d91e46b8f87c3 (diff)
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
Diffstat (limited to 'build_tools')
-rw-r--r--build_tools/Makefile6
-rw-r--r--build_tools/menuselect_curses.c1
2 files changed, 3 insertions, 4 deletions
diff --git a/build_tools/Makefile b/build_tools/Makefile
index d48017fc2..eb8e6e3a7 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 01ac8de8c..88c4a7a4f 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,