diff options
author | Christopher Haster <geky@geky.net> | 2023-10-31 21:26:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 21:26:35 +0300 |
commit | c733d9ec5776dfc949ec6dc71fa9ce3ff71de6e5 (patch) | |
tree | 140ae5f5312fcaf3bf74bcd19310b768d4f1fd03 | |
parent | f91c5bd6870395b351af0f0c6d8abd0b3de4845b (diff) | |
parent | 8f3f32d1f31e9b233a22eafa04257b5c9a073160 (diff) |
Merge pull request #884 from DvdGiessen/static-functionsv2.8.1
lfs_fs_raw* functions should be static
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | lfs.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -63,6 +63,7 @@ CFLAGS += -fcallgraph-info=su CFLAGS += -g3 CFLAGS += -I. CFLAGS += -std=c99 -Wall -Wextra -pedantic +CFLAGS += -Wmissing-prototypes CFLAGS += -ftrack-macro-expansion=0 ifdef DEBUG CFLAGS += -O0 @@ -354,6 +355,7 @@ summary-diff sizes-diff: $(OBJ) $(CI) ## Build the test-runner .PHONY: test-runner build-test +test-runner build-test: CFLAGS+=-Wno-missing-prototypes ifndef NO_COV test-runner build-test: CFLAGS+=--coverage endif @@ -405,6 +407,7 @@ testmarks-diff: $(TEST_CSV) ## Build the bench-runner .PHONY: bench-runner build-bench +bench-runner build-bench: CFLAGS+=-Wno-missing-prototypes ifdef YES_COV bench-runner build-bench: CFLAGS+=--coverage endif @@ -4999,7 +4999,7 @@ static int lfs_fs_forceconsistency(lfs_t *lfs) { #endif #ifndef LFS_READONLY -int lfs_fs_rawmkconsistent(lfs_t *lfs) { +static int lfs_fs_rawmkconsistent(lfs_t *lfs) { // lfs_fs_forceconsistency does most of the work here int err = lfs_fs_forceconsistency(lfs); if (err) { @@ -5046,7 +5046,7 @@ static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs) { } #ifndef LFS_READONLY -int lfs_fs_rawgrow(lfs_t *lfs, lfs_size_t block_count) { +static int lfs_fs_rawgrow(lfs_t *lfs, lfs_size_t block_count) { // shrinking is not supported LFS_ASSERT(block_count >= lfs->block_count); |