Skip to content

Commit

Permalink
util: cast to use empty function json_object_array_add parameter k
Browse files Browse the repository at this point in the history
This is to prevent the build warning without json.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Dec 21, 2024
1 parent f2fc5e3 commit 1bfbc0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ struct json_object;
#define json_object_add_value_object(o, k, v) ((void)(v))
#define json_array_add_value_object(o, k) ((void)(k))
#define json_print_object(o, u) ((void)(o))
#define json_object_array_add(o, k) ((void)(k))
#endif /* CONFIG_JSONC */
#endif /* __JSON__H */

0 comments on commit 1bfbc0b

Please sign in to comment.