Skip to content

Commit

Permalink
Fix missing break and fix GCC unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Jan 13, 2025
1 parent 485bb2f commit a243468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/glaze/json/schema.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ struct glz::meta<glz::detail::schematic>
"ExtUnits", //
"ExtAdvanced"};

static constexpr glz::tuple value{&T::type, //
[[maybe_unused]] static constexpr glz::tuple value{&T::type, //
&T::properties, //
&T::items, //
&T::additionalProperties, //
Expand Down
1 change: 1 addition & 0 deletions include/glaze/json/skip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ namespace glz::detail
skip_comment(ctx, it, end);
if (bool(ctx.error)) [[unlikely]]
return;
break;
}
case 'n': {
++it;
Expand Down

0 comments on commit a243468

Please sign in to comment.