Removed all warnings/errors. Cpompiles now with -Werror.

FossilOrigin-Name: d3b91405f851ff89c4cc19dcd07bfe3af3799e375ad07011d61da5e70aa576ec
This commit is contained in:
7u83@mail.ru 2015-04-26 12:17:40 +00:00
parent 6988c41f71
commit 44bbe2a828
4 changed files with 12 additions and 5 deletions

View File

@ -11,7 +11,7 @@ ifndef ARCH
endif endif
LDFLAGS+=-g -D_REENTRANT -L/usr/local/lib -L../capwap/$(ARCH) LDFLAGS+=-g -D_REENTRANT -L/usr/local/lib -L../capwap/$(ARCH)
CFLAGS += -Wall -g -O3 -D_REENTRANT -DIPV6 -I/usr/local/include -I../ CFLAGS += -Werror -g -O0 -D_REENTRANT -DIPV6 -I/usr/local/include -I../
LIBS+=-lcapwap LIBS+=-lcapwap

View File

@ -14,15 +14,18 @@
#include "capwap/aciplist.h" #include "capwap/aciplist.h"
/*
int pr(void *x,void *y){ int pr(void *x,void *y){
} }
*/
/*
struct radioinfo * get_radioinfo() struct radioinfo * get_radioinfo()
{ {
} }
*/
/* /*
struct ac_info * get_acinfo() struct ac_info * get_acinfo()
@ -91,8 +94,10 @@ struct ac_info * get_acinfo()
*/ */
/*
get_join_result() get_join_result()
{ {
return 0; return 0;
} }
*/

View File

@ -38,13 +38,14 @@
#include "db.h" #include "db.h"
#include "capwap/capwap_items.h" #include "capwap/capwap_items.h"
#include "capwap/capwap_cisco.h" #include "capwap/capwap_cisco.h"
#include "capwap/capwap_80211.h"
#include "ac.h" #include "ac.h"
#include "capwap/format.h" #include "capwap/format.h"
int ac_run(); int ac_run();
void alive_thread(void *data) void * alive_thread(void *data)
{ {
while(1){ while(1){
sleep(5); sleep(5);
@ -183,7 +184,7 @@ int main (int argc, const char * argv[])
db_start(); db_start();
db_ping(); db_ping();
pthread_t alth; pthread_t alth;
pthread_create (&alth, NULL, alive_thread, (void *)0); pthread_create (&alth, NULL, alive_thread, NULL);
int rc=0; int rc=0;
dtls_init(); dtls_init();

View File

@ -1,3 +1,4 @@
extern void db_ping(); extern void db_ping();
extern int db_init(); extern int db_init();
int db_start();