From f4c7bd94b207c696741d4b102e5d081e458a3fe4 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 10 Dec 2011 13:34:25 +0000 Subject: [PATCH] Misc compilation warning cleanup git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4155 42af7a65-404d-4744-a932-0658087f49c3 --- include/nuttx/net.h | 4 ---- include/termios.h | 10 +++++----- net/netdev_unregister.c | 2 -- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/include/nuttx/net.h b/include/nuttx/net.h index 62dfa2bd8be..c04d12069b6 100644 --- a/include/nuttx/net.h +++ b/include/nuttx/net.h @@ -111,10 +111,6 @@ struct socketlist }; #endif -/* This defines a bitmap big enough for one bit for each socket option */ - -typedef uint16_t sockopt_t; - /* Callback from netdev_foreach() */ struct uip_driver_s; /* Forward reference. See net/uip/uip-arch.h */ diff --git a/include/termios.h b/include/termios.h index 9e87e72a800..25ce61b4013 100644 --- a/include/termios.h +++ b/include/termios.h @@ -198,11 +198,11 @@ typedef int cc_t; /* Used for terminal special characters */ struct termios { - tcflag_t c_iflag /* Input modes */ - tcflag_t c_oflag /* Output modes */ - tcflag_t c_cflag /* Control modes */ - tcflag_t c_lflag /* Local modes */ - cc_t c_cc[NCCS] /* Control chars */ + tcflag_t c_iflag; /* Input modes */ + tcflag_t c_oflag; /* Output modes */ + tcflag_t c_cflag; /* Control modes */ + tcflag_t c_lflag; /* Local modes */ + cc_t c_cc[NCCS]; /* Control chars */ }; /**************************************************************************** diff --git a/net/netdev_unregister.c b/net/netdev_unregister.c index 76be54b9a16..e5c2f3ce5bc 100644 --- a/net/netdev_unregister.c +++ b/net/netdev_unregister.c @@ -72,8 +72,6 @@ * Private Data ****************************************************************************/ -static int g_next_devnum = 0; - /**************************************************************************** * Public Data ****************************************************************************/