-Wmissing-variable-declarations is missing in gcc but available in clang.
Signed-off by: Rosen Penev <rosenp@gmail.com>
#include "include/ucix.h"
#include "include/autofs.h"
-int fdin = 0; /* data coming out of the kernel */
-int fdout = 0;/* data going into the kernel */
-dev_t dev;
+static int fdin = 0; /* data coming out of the kernel */
+static int fdout = 0;/* data going into the kernel */
+static dev_t dev;
-time_t uci_timeout;
+static time_t uci_timeout;
char uci_path[32];
static void umount_autofs(void)
return ret;
}
-dfunc funcs[] = {
+static dfunc funcs[] = {
detect_ext23,
detect_exfat,
detect_fat,
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Provided by fon.com
- * Copyright (C) 2009 John Crispin <blogic@openwrt.org>
+ * Copyright (C) 2009 John Crispin <blogic@openwrt.org>
*/
#include "include/timer.h"
#include "include/led.h"
-char usbled[16];
+static char usbled[16];
void led_ping(void)
{
int mount_new(char *path, char *dev);
-struct list_head mounts;
+static struct list_head mounts;
struct mount {
struct list_head list;
int fs;
};
-char *fs_names[] = {
+static char *fs_names[] = {
"",
"",
"mbr",
#define MAX_MOUNTED 32
#define MAX_MOUNT_NAME 32
-char mounted[MAX_MOUNTED][3][MAX_MOUNT_NAME];
-int mounted_count = 0;
+static char mounted[MAX_MOUNTED][3][MAX_MOUNT_NAME];
+static int mounted_count = 0;
extern char uci_path[32];
static void mount_dump_uci_state(void)
return 0;
}
#define MAX_BLOCK 64
-char block[MAX_BLOCK][MAX_BLOCK];
-int blk_cnt = 0;
+static char block[MAX_BLOCK][MAX_BLOCK];
+static int blk_cnt = 0;
static int check_block(char *b)
{
#include "include/led.h"
#include "include/signal.h"
-void (*crtlc_cb)(void) = 0;
+static void (*crtlc_cb)(void) = 0;
static void handlerINT(int s)
{
/* when using this file, alarm() is used */
-struct list_head timers;
+static struct list_head timers;
struct timer {
struct list_head list;