mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
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:
parent
f51f40c440
commit
56daac02d1
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user