Global: replaces __attribute__ to C23 [[attribute]]

This commit is contained in:
李通洲
2026-07-10 21:13:03 +08:00
parent ba18705d2e
commit 61656a1a7a
229 changed files with 619 additions and 648 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ static void fillUtmpIpAddr(FFUserResult* user, struct utmpx* n) {
}
}
#else
static void fillUtmpIpAddr(FF_A_UNUSED FFUserResult* user, FF_A_UNUSED struct utmpx* n) {
static void fillUtmpIpAddr([[maybe_unused]] FFUserResult* user, [[maybe_unused]] struct utmpx* n) {
}
#endif
+1 -1
View File
@@ -4,7 +4,7 @@
#include <utmp.h>
const char* ffDetectUsers(FF_A_UNUSED FFUsersOptions* options, FFlist* users) {
const char* ffDetectUsers([[maybe_unused]] FFUsersOptions* options, FFlist* users) {
FF_AUTO_CLOSE_FILE FILE* fp = fopen(_PATH_UTMP, "r");
if (!fp) {
return "fopen(_PATH_UTMP, r) failed";