mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-30 18:08:00 +02:00
lint: satisfy some nullability annotations
This commit is contained in:
@@ -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
|
||||
|
@@ -10,3 +10,9 @@
|
||||
#else
|
||||
#define NNULLABLE
|
||||
#endif
|
||||
|
||||
#if defined(__clang__)
|
||||
#define UNULLABLE _Null_unspecified
|
||||
#else
|
||||
#define UNULLABLE
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user