mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 14:10:11 +01:00
Global: replaces __attribute__ to C23 [[attribute]]
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user