Skip to content

Commit

Permalink
Ignore false positives from GCC's dangling reference warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Feb 5, 2025
1 parent affaa00 commit a071e26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uzuki2/parse_json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace json {
/**
* @cond
*/
[[gnu::no_dangling]]
inline const std::vector<std::shared_ptr<millijson::Base> >& extract_array(
const std::unordered_map<std::string, std::shared_ptr<millijson::Base> >& properties,
const std::string& name,
Expand Down

0 comments on commit a071e26

Please sign in to comment.