gthread: Fix optional/nullable annotations for g_once_init_*()

The pointer argument must not be `NULL` (though it can point to a
location which is zero/null-valued), so this should be `(not optional)`
not `(not nullable)`.

Spotted in !3577.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2023-09-13 12:44:49 +01:00
parent f51f40c440
commit 56daac02d1

View File

@ -663,7 +663,7 @@ g_once_impl (GOnce *once,
/**
* g_once_init_enter:
* @location: (not nullable): location of a static initializable variable
* @location: (inout) (not optional): location of a static initializable variable
* containing 0
*
* Function to be called when starting a critical initialization
@ -721,7 +721,7 @@ gboolean
/**
* g_once_init_leave:
* @location: (not nullable): location of a static initializable variable
* @location: (inout) (not optional): location of a static initializable variable
* containing 0
* @result: new non-0 value for *@value_location
*