From 9af648d05e78c3ee9f39ad02b5ccda895d0d867d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 1 Nov 2022 22:58:35 -0400 Subject: Add missing pure and const function attributes It seems that certain versions and/or configurations of gcc warn about these for static functions, which is annoying, but whatever. --- src/posix/filesystem_posix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/posix') diff --git a/src/posix/filesystem_posix.c b/src/posix/filesystem_posix.c index 0360403..277c3d0 100644 --- a/src/posix/filesystem_posix.c +++ b/src/posix/filesystem_posix.c @@ -368,6 +368,7 @@ zix_file_unlock(FILE* const file, const ZixFileLockMode mode) #endif } +ZIX_CONST_FUNC static ZixFileType stat_file_type(const struct stat sb) { -- cgit v1.2.1