Skip to content

Commit f7a270e

Browse files
committed
Squashed 'littlefs/' changes from f77214d..c733d9e
c733d9e Merge pull request #884 from DvdGiessen/static-functions 8f3f32d Added -Wmissing-prototypes 92fc780 lfs_fs_raw* functions should be static git-subtree-dir: littlefs git-subtree-split: c733d9ec5776dfc949ec6dc71fa9ce3ff71de6e5
1 parent acad709 commit f7a270e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ CFLAGS += -fcallgraph-info=su
6363
CFLAGS += -g3
6464
CFLAGS += -I.
6565
CFLAGS += -std=c99 -Wall -Wextra -pedantic
66+
CFLAGS += -Wmissing-prototypes
6667
CFLAGS += -ftrack-macro-expansion=0
6768
ifdef DEBUG
6869
CFLAGS += -O0
@@ -354,6 +355,7 @@ summary-diff sizes-diff: $(OBJ) $(CI)
354355

355356
## Build the test-runner
356357
.PHONY: test-runner build-test
358+
test-runner build-test: CFLAGS+=-Wno-missing-prototypes
357359
ifndef NO_COV
358360
test-runner build-test: CFLAGS+=--coverage
359361
endif
@@ -405,6 +407,7 @@ testmarks-diff: $(TEST_CSV)
405407

406408
## Build the bench-runner
407409
.PHONY: bench-runner build-bench
410+
bench-runner build-bench: CFLAGS+=-Wno-missing-prototypes
408411
ifdef YES_COV
409412
bench-runner build-bench: CFLAGS+=--coverage
410413
endif

lfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4999,7 +4999,7 @@ static int lfs_fs_forceconsistency(lfs_t *lfs) {
49994999
#endif
50005000

50015001
#ifndef LFS_READONLY
5002-
int lfs_fs_rawmkconsistent(lfs_t *lfs) {
5002+
static int lfs_fs_rawmkconsistent(lfs_t *lfs) {
50035003
// lfs_fs_forceconsistency does most of the work here
50045004
int err = lfs_fs_forceconsistency(lfs);
50055005
if (err) {
@@ -5046,7 +5046,7 @@ static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs) {
50465046
}
50475047

50485048
#ifndef LFS_READONLY
5049-
int lfs_fs_rawgrow(lfs_t *lfs, lfs_size_t block_count) {
5049+
static int lfs_fs_rawgrow(lfs_t *lfs, lfs_size_t block_count) {
50505050
// shrinking is not supported
50515051
LFS_ASSERT(block_count >= lfs->block_count);
50525052

0 commit comments

Comments
 (0)