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
+5 -5
View File
@@ -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 = {