lint: satisfy some nullability annotations

This commit is contained in:
2025-06-11 14:40:21 +02:00
parent 4e18df55bf
commit 2bdb57390d
5 changed files with 50 additions and 47 deletions

View File

@@ -11,8 +11,9 @@ struct status {
int ret;
};
int read_desktop(FILE* fd, void* ctx,
struct status (*cb)(void* ctx, char* NULLABLE table, char* key,
char* value));
int read_desktop(FILE* NNULLABLE fd, void* UNULLABLE ctx,
struct status (*NNULLABLE cb)(void* UNULLABLE ctx, char* NULLABLE table,
char* NNULLABLE key,
char* NNULLABLE value));
#endif

View File

@@ -10,3 +10,9 @@
#else
#define NNULLABLE
#endif
#if defined(__clang__)
#define UNULLABLE _Null_unspecified
#else
#define UNULLABLE
#endif