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:
@@ -106,7 +106,7 @@ const char* detectByOpenGL(FFlist* gpus) {
|
||||
ffStrbufInit(&result.slv);
|
||||
ffStrbufInit(&result.library);
|
||||
|
||||
FF_A_CLEANUP(ffDestroyOpenGLOptions) FFOpenGLOptions options;
|
||||
[[gnu::cleanup(ffDestroyOpenGLOptions)]] FFOpenGLOptions options;
|
||||
ffInitOpenGLOptions(&options);
|
||||
const char* error = ffDetectOpenGL(&options, &result);
|
||||
FF_DEBUG("OpenGL detection returns: %s", error ?: "success");
|
||||
|
||||
Reference in New Issue
Block a user