diff options
author | Ben Pfaff <blp@ovn.org> | 2017-08-23 00:15:03 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-12-08 13:39:29 -0800 |
commit | 65d9759c4fc433dbda89ad3d7225c1f5eac274ca (patch) | |
tree | e0d9bf198969005ca37153a1be972d45015dbd30 /lib/ovsdb-data.c | |
parent | ed4ef16a221dc9feab69ef269da9a44d51dff356 (diff) | |
download | openvswitch-65d9759c4fc433dbda89ad3d7225c1f5eac274ca.tar.gz |
ovsdb-data: Add OVS_WARN_UNUSED_RESULT annotations to function definitions.
The function prototypes in ovsdb-data.h already have these, but it seems
more complete to have the annotation on the definitions too.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Diffstat (limited to 'lib/ovsdb-data.c')
-rw-r--r-- | lib/ovsdb-data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c index 840e18fa1..5d560fd98 100644 --- a/lib/ovsdb-data.c +++ b/lib/ovsdb-data.c @@ -1303,7 +1303,7 @@ ovsdb_datum_from_json__(struct ovsdb_datum *datum, * If 'symtab' is nonnull, then named UUIDs in 'symtab' are accepted. Refer to * RFC 7047 for information about this, and for the syntax that this function * accepts. */ -struct ovsdb_error * +struct ovsdb_error * OVS_WARN_UNUSED_RESULT ovsdb_datum_from_json(struct ovsdb_datum *datum, const struct ovsdb_type *type, const struct json *json, @@ -1329,7 +1329,7 @@ ovsdb_datum_from_json(struct ovsdb_datum *datum, * * The datum generated should be used then discard. It is not suitable * for storing into IDL because of the possible member size violation. */ -struct ovsdb_error * +struct ovsdb_error * OVS_WARN_UNUSED_RESULT ovsdb_transient_datum_from_json(struct ovsdb_datum *datum, const struct ovsdb_type *type, const struct json *json) |