Bug 78850

Summary: gudev: Add missing (nullable) annotations on return values
Product: systemd Reporter: Evan Nemerson <evan>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: gudev: add missing (nullable) annotations on return values

Description Evan Nemerson 2014-05-18 07:26:47 UTC
Created attachment 99266 [details]
gudev: add missing (nullable) annotations on return values

GObject Introspection has recently added support for annotating return values as nullable (see https://bugzilla.gnome.org/show_bug.cgi?id=660879), and gudev includes many functions which can return NULL.

Right now this is only in git, but adding (nullable) annotations now should only cause some harmless warning messages from older g-ir-scanner and gtk-doc like "warning: unknown annotation "nullable" in documentation for g_udev_...", so I believe this is safe add the annotations immediately.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.