diff options
author | Grazvydas Ignotas <[email protected]> | 2015-08-18 03:23:29 +0300 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-08-26 15:42:26 +0200 |
commit | f8b01ae47cc4760d5687e50f3315b5a89e19cd26 (patch) | |
tree | 532ecbd8c01931e438078e4f9b17bb7b258daf39 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | e0c2ea03377b52058324f735f7e1f55bb9d29750 (diff) |
radeonsi: mark unreachable paths to avoid warnings
Otherwise we get:
warning: 'num_user_sgprs' may be used uninitialized in this function
...
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index fa6c15a6591..6b70a8f4f48 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2418,7 +2418,7 @@ static void tex_fetch_args( num_deriv_channels = 1; break; default: - assert(0); /* no other targets are valid here */ + unreachable("invalid target"); } for (param = 0; param < 2; param++) |