mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 16:48:07 +02:00
fix: r600/sfn: unused variable ‘spi_sid’ [-Wunused-variable]
Only used in debug builds. Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Mihai Preda <mhpreda@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18643>
This commit is contained in:
parent
2997f6957e
commit
6aba6a57cc
1 changed files with 2 additions and 2 deletions
|
|
@ -251,7 +251,7 @@ bool Shader::read_output(std::istream& is)
|
|||
int sid = int_from_string_with_prefix(value, "SID:");
|
||||
output.set_sid(sid);
|
||||
is >> value;
|
||||
int spi_sid = int_from_string_with_prefix(value, "SPI_SID:");
|
||||
ASSERTED int spi_sid = int_from_string_with_prefix(value, "SPI_SID:");
|
||||
assert(spi_sid == output.spi_sid());
|
||||
}
|
||||
|
||||
|
|
@ -282,7 +282,7 @@ bool Shader::read_input(std::istream& is)
|
|||
int sid = int_from_string_with_prefix(value, "SID:");
|
||||
input.set_sid(sid);
|
||||
} else if (value.substr(0, 8) == "SPI_SID:") {
|
||||
int spi_sid = int_from_string_with_prefix(value, "SPI_SID:");
|
||||
ASSERTED int spi_sid = int_from_string_with_prefix(value, "SPI_SID:");
|
||||
assert(spi_sid == input.spi_sid());
|
||||
} else if (value.substr(0, 7) == "INTERP:") {
|
||||
interp = int_from_string_with_prefix(value, "INTERP:");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue