]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
build menuselect objects with -Wall and remove an unused variable
authorRussell Bryant <russell@russellbryant.com>
Fri, 16 Jun 2006 00:14:46 +0000 (00:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 16 Jun 2006 00:14:46 +0000 (00:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34374 65c4cc65-6c06-0410-ace0-fbb531ad65f3

build_tools/Makefile
build_tools/menuselect_curses.c

index d48017fc2661ab4a50b70d66c04466d60dd77378..eb8e6e3a776de5f01c9bf260ff57fa64dc0e2477 100644 (file)
@@ -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
index 01ac8de8cf62001597345b4cad4211bb6e47f600..88c4a7a4fe83cd3e0ef95b597de417fcbd057732 100644 (file)
@@ -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,