[nostalgia/gfx] Suppress some superfluous warnings
Some checks failed
Build / build (push) Failing after 1m9s
Some checks failed
Build / build (push) Failing after 1m9s
This commit is contained in:
parent
12bb7475fc
commit
d62f913855
@ -443,23 +443,24 @@ ox::Error resizeSubsheet(TileSheet::SubSheet &ss, ox::Size const&sz) noexcept;
|
|||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
TileSheet::SubSheetIdx validateSubSheetIdx(TileSheet const&ts, TileSheet::SubSheetIdx idx) noexcept;
|
TileSheet::SubSheetIdx validateSubSheetIdx(TileSheet const&ts, TileSheet::SubSheetIdx idx) noexcept;
|
||||||
|
|
||||||
[[nodiscard]]
|
|
||||||
TileSheet::SubSheet const&getSubSheet(
|
|
||||||
ox::SpanView<uint32_t> const&idx,
|
|
||||||
std::size_t idxIt,
|
|
||||||
TileSheet::SubSheet const&pSubsheet) noexcept;
|
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
TileSheet::SubSheet &getSubSheet(
|
TileSheet::SubSheet &getSubSheet(
|
||||||
ox::SpanView<uint32_t> const&idx,
|
ox::SpanView<uint32_t> const&idx,
|
||||||
std::size_t idxIt,
|
std::size_t idxIt,
|
||||||
TileSheet::SubSheet &pSubsheet) noexcept;
|
TileSheet::SubSheet &pSubsheet) noexcept;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||||
|
#endif
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
TileSheet::SubSheet const&getSubSheet(TileSheet const&ts, ox::SpanView<uint32_t> const &idx) noexcept;
|
TileSheet::SubSheet const&getSubSheet(TileSheet const&ts, ox::SpanView<uint32_t> const &idx) noexcept;
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
TileSheet::SubSheet &getSubSheet(TileSheet &ts, ox::SpanView<uint32_t> const &idx) noexcept;
|
TileSheet::SubSheet &getSubSheet(TileSheet &ts, ox::SpanView<uint32_t> const &idx) noexcept;
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
ox::Error addSubSheet(TileSheet &ts, TileSheet::SubSheetIdx const &idx) noexcept;
|
ox::Error addSubSheet(TileSheet &ts, TileSheet::SubSheetIdx const &idx) noexcept;
|
||||||
|
|
||||||
|
@ -187,7 +187,11 @@ TileSheet::SubSheetIdx validateSubSheetIdx(TileSheet const&ts, TileSheet::SubShe
|
|||||||
return validateSubSheetIdx(std::move(idx), 0, ts.subsheet);
|
return validateSubSheetIdx(std::move(idx), 0, ts.subsheet);
|
||||||
}
|
}
|
||||||
|
|
||||||
TileSheet::SubSheet const&getSubSheet(
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||||
|
#endif
|
||||||
|
static TileSheet::SubSheet const&getSubSheet(
|
||||||
ox::SpanView<uint32_t> const &idx,
|
ox::SpanView<uint32_t> const &idx,
|
||||||
std::size_t const idxIt,
|
std::size_t const idxIt,
|
||||||
TileSheet::SubSheet const &pSubsheet) noexcept {
|
TileSheet::SubSheet const &pSubsheet) noexcept {
|
||||||
@ -200,6 +204,9 @@ TileSheet::SubSheet const&getSubSheet(
|
|||||||
}
|
}
|
||||||
return getSubSheet(idx, idxIt + 1, pSubsheet.subsheets[currentIdx]);
|
return getSubSheet(idx, idxIt + 1, pSubsheet.subsheets[currentIdx]);
|
||||||
}
|
}
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
TileSheet::SubSheet &getSubSheet(
|
TileSheet::SubSheet &getSubSheet(
|
||||||
ox::SpanView<uint32_t> const &idx,
|
ox::SpanView<uint32_t> const &idx,
|
||||||
@ -211,6 +218,10 @@ TileSheet::SubSheet &getSubSheet(
|
|||||||
return getSubSheet(idx, idxIt + 1, pSubsheet.subsheets[idx[idxIt]]);
|
return getSubSheet(idx, idxIt + 1, pSubsheet.subsheets[idx[idxIt]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||||
|
#endif
|
||||||
TileSheet::SubSheet const&getSubSheet(TileSheet const &ts, ox::SpanView<uint32_t> const &idx) noexcept {
|
TileSheet::SubSheet const&getSubSheet(TileSheet const &ts, ox::SpanView<uint32_t> const &idx) noexcept {
|
||||||
return gfx::getSubSheet(idx, 0, ts.subsheet);
|
return gfx::getSubSheet(idx, 0, ts.subsheet);
|
||||||
}
|
}
|
||||||
@ -218,6 +229,9 @@ TileSheet::SubSheet const&getSubSheet(TileSheet const &ts, ox::SpanView<uint32_t
|
|||||||
TileSheet::SubSheet &getSubSheet(TileSheet &ts, ox::SpanView<uint32_t> const &idx) noexcept {
|
TileSheet::SubSheet &getSubSheet(TileSheet &ts, ox::SpanView<uint32_t> const &idx) noexcept {
|
||||||
return gfx::getSubSheet(idx, 0, ts.subsheet);
|
return gfx::getSubSheet(idx, 0, ts.subsheet);
|
||||||
}
|
}
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
ox::Error addSubSheet(TileSheet &ts, TileSheet::SubSheetIdx const&idx) noexcept {
|
ox::Error addSubSheet(TileSheet &ts, TileSheet::SubSheetIdx const&idx) noexcept {
|
||||||
auto &parent = getSubSheet(ts, idx);
|
auto &parent = getSubSheet(ts, idx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user