summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-07-02 10:47:54 -0700
committerIan Romanick <[email protected]>2014-07-19 15:03:57 -0700
commit22b9641edf91f0da76b758db527d4a3b3b2dff82 (patch)
treed6bb14a661c99755259ada7ffdb03158341b3752 /src/mesa/drivers/dri
parent1946612b7d6e802f63f59d1775a2e96c46279b87 (diff)
i965: Silence 'comparison is always true' warning
The parameter is an int16_t, and we're check that it's value will fit in 16-bits. Yes, the value that is stored in 16-bits will surely fit in 16-bits. brw_inst.h: In function 'brw_inst_set_gen6_jump_count': brw_inst.h:321:66: warning: comparison is always true due to limited range of data type [-Wtype-limits] brw_inst.h:321:66: warning: comparison is always true due to limited range of data type [-Wtype-limits] Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_inst.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_inst.h b/src/mesa/drivers/dri/i965/brw_inst.h
index 719ac8e0985..c1ff10d5cbe 100644
--- a/src/mesa/drivers/dri/i965/brw_inst.h
+++ b/src/mesa/drivers/dri/i965/brw_inst.h
@@ -306,8 +306,6 @@ static inline void \
brw_inst_set_##name(const struct brw_context *brw, brw_inst *inst, int16_t v) \
{ \
assert(assertions); \
- assert(v <= (1 << 16) - 1); \
- assert(v > -(1 << 16)); \
(void) brw; \
brw_inst_set_bits(inst, high, low, (uint16_t) v); \
} \