Browse Source

Remove function prototypes and -Wmissing-prototypes from CFLAGS.

Declaring prototypes is just extra work for no gain if the code is
ordered righti (which is the case here).
Georgi Chorbadzhiyski 12 years ago
parent
commit
782321e5e9
2 changed files with 1 additions and 9 deletions
  1. 1
    1
      Makefile
  2. 0
    8
      fjfs.c

+ 1
- 1
Makefile View File

@@ -3,7 +3,7 @@ CFLAGS_OPT?=	-O2
3 3
 CFLAGS_WARN?=	-Wall -W -Wextra -Wshadow -Wformat-security \
4 4
 		-std=c99 -pedantic -Wbad-function-cast \
5 5
 		-Wcast-align -Wcast-qual -Wchar-subscripts -Winline \
6
-		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
6
+		-Wnested-externs -Wpointer-arith \
7 7
 		-Wredundant-decls -Wstrict-prototypes
8 8
 
9 9
 CFLAGS?=	${CFLAGS_DBG} ${CFLAGS_OPT}

+ 0
- 8
fjfs.c View File

@@ -79,14 +79,6 @@ struct files {
79 79
 
80 80
 struct files *filelist;
81 81
 
82
-static struct files *files_alloc(void);
83
-static void files_free(struct files **pfiles);
84
-#ifdef DO_DUMP
85
-static void files_dump(struct files *files);
86
-#endif
87
-static int files_add_file(struct files *files, char *filename);
88
-static int files_load_filelist(struct files *files, char *filename);
89
-
90 82
 struct files *files_alloc(void) {
91 83
 	struct files *f = calloc(1, sizeof(struct files));
92 84
 	f->alloc_files = 64;

Loading…
Cancel
Save