Global: replaces __attribute__ to C23 [[attribute]]

This commit is contained in:
李通洲 committed 2026-07-11 08:14:21 +08:00
1 parent ba18705d2e
commit 61656a1a7a
229 files changed
+619 -648

No files matched your search

+1 -1
View File
@@ -273,7 +273,7 @@ const char* ffBinaryExtractStrings(const char* machoFile, bool (*cb)(const char*
return "Failed to stat file";
}
FF_A_CLEANUP(wrapMunmap) FFMemoryMapping mapping = {
[[gnu::cleanup(wrapMunmap)]] FFMemoryMapping mapping = {
.data = mmap(nullptr, (size_t) st.st_size, PROT_READ, MAP_PRIVATE, fd, 0),
.length = (size_t) st.st_size,
};