mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
Global: replaces __attribute__ to C23 [[attribute]]
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
#include "modules/logo/logo.h"
|
||||
#include "options/logo.h"
|
||||
|
||||
bool ffPrintLogo(FF_A_UNUSED FFLogoOptions* options) {
|
||||
bool ffPrintLogo([[maybe_unused]] FFLogoOptions* options) {
|
||||
ffPrintError(FF_LOGO_MODULE_NAME, 0, nullptr, FF_PRINT_TYPE_DEFAULT, "Supported in JSON format only");
|
||||
return false;
|
||||
}
|
||||
|
||||
void ffParseLogoJsonObject(FF_A_UNUSED FFLogoOptions* options, FF_A_UNUSED yyjson_val* module) {
|
||||
void ffParseLogoJsonObject([[maybe_unused]] FFLogoOptions* options, [[maybe_unused]] yyjson_val* module) {
|
||||
yyjson_val *key, *val;
|
||||
size_t idx, max;
|
||||
yyjson_obj_foreach (module, idx, max, key, val) {
|
||||
@@ -20,7 +20,7 @@ void ffParseLogoJsonObject(FF_A_UNUSED FFLogoOptions* options, FF_A_UNUSED yyjso
|
||||
}
|
||||
}
|
||||
|
||||
bool ffGenerateLogoJsonResult(FF_A_UNUSED FFLogoOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module) {
|
||||
bool ffGenerateLogoJsonResult([[maybe_unused]] FFLogoOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module) {
|
||||
FFLogoSize size = FF_LOGO_SIZE_UNKNOWN;
|
||||
FFOptionsLogo* logoOptions = &instance.config.logo;
|
||||
if (logoOptions->type == FF_LOGO_TYPE_SMALL) {
|
||||
@@ -70,10 +70,10 @@ bool ffGenerateLogoJsonResult(FF_A_UNUSED FFLogoOptions* options, yyjson_mut_doc
|
||||
return true;
|
||||
}
|
||||
|
||||
void ffInitLogoOptions(FF_A_UNUSED FFLogoOptions* options) {
|
||||
void ffInitLogoOptions([[maybe_unused]] FFLogoOptions* options) {
|
||||
}
|
||||
|
||||
void ffDestroyLogoOptions(FF_A_UNUSED FFLogoOptions* options) {
|
||||
void ffDestroyLogoOptions([[maybe_unused]] FFLogoOptions* options) {
|
||||
}
|
||||
|
||||
FFModuleBaseInfo ffLogoModuleInfo = {
|
||||
|
||||
Reference in New Issue
Block a user