mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
gallium/aux/tgsi_text.c: Fix -Wsign-compare warnings
tgsi/tgsi_text.c: In function 'parse_identifier':
tgsi/tgsi_text.c:218:16: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if (i == len - 1)
^~
tgsi/tgsi_text.c: In function 'parse_optional_swizzle':
tgsi/tgsi_text.c:873:21: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for (i = 0; i < components; i++) {
^
tgsi/tgsi_text.c: In function 'parse_instruction':
tgsi/tgsi_text.c:1103:18: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
for (i = 0; i < info->num_dst + info->num_src + info->is_tex; i++) {
^
tgsi/tgsi_text.c:1118:18: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
else if (i < info->num_dst + info->num_src) {
^
tgsi/tgsi_text.c: In function 'parse_immediate':
tgsi/tgsi_text.c:1660:24: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
for (type = 0; type < ARRAY_SIZE(tgsi_immediate_type_names); ++type)
{
^
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
b16b6d0889
commit
c5e8280504
2 changed files with 5 additions and 5 deletions
|
|
@ -211,7 +211,7 @@ static boolean parse_int( const char **pcur, int *val )
|
|||
static boolean parse_identifier( const char **pcur, char *ret, size_t len )
|
||||
{
|
||||
const char *cur = *pcur;
|
||||
int i = 0;
|
||||
size_t i = 0;
|
||||
if (is_alpha_underscore( cur )) {
|
||||
ret[i++] = *cur++;
|
||||
while (is_alpha_underscore( cur ) || is_digit( cur )) {
|
||||
|
|
@ -866,7 +866,7 @@ parse_optional_swizzle(
|
|||
|
||||
eat_opt_white( &cur );
|
||||
if (*cur == '.') {
|
||||
uint i;
|
||||
int i;
|
||||
|
||||
cur++;
|
||||
eat_opt_white( &cur );
|
||||
|
|
@ -1037,7 +1037,7 @@ parse_instruction(
|
|||
struct translate_ctx *ctx,
|
||||
boolean has_label )
|
||||
{
|
||||
uint i;
|
||||
int i;
|
||||
uint saturate = 0;
|
||||
uint precise = 0;
|
||||
const struct tgsi_opcode_info *info;
|
||||
|
|
@ -1626,7 +1626,7 @@ static boolean parse_immediate( struct translate_ctx *ctx )
|
|||
{
|
||||
struct tgsi_full_immediate imm;
|
||||
uint advance;
|
||||
int type;
|
||||
uint type;
|
||||
|
||||
if (*ctx->cur == '[') {
|
||||
uint uindex;
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ tgsi_util_set_src_register_swizzle(struct tgsi_src_register *reg,
|
|||
unsigned
|
||||
tgsi_util_get_full_src_register_sign_mode(
|
||||
const struct tgsi_full_src_register *reg,
|
||||
unsigned component)
|
||||
UNUSED unsigned component)
|
||||
{
|
||||
unsigned sign_mode;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue