Mesa (master): r600g: Silence 'control reaches end of non-void function' warning.

Vinson Lee vlee at kemper.freedesktop.org
Sat Sep 25 06:49:30 UTC 2010


Module: Mesa
Branch: master
Commit: 53e6eb8dbeedce5699bd43049d5dc1dde9d8855e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=53e6eb8dbeedce5699bd43049d5dc1dde9d8855e

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Sep 24 23:48:05 2010 -0700

r600g: Silence 'control reaches end of non-void function' warning.

Fixes this GCC warning.
r600_hw_states.c: In function 'r600_translate_fill':
r600_state_inlines.h:136: warning: control reaches end of non-void function

---

 src/gallium/drivers/r600/r600_state_inlines.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h
index a9e7619..81ce1bb 100644
--- a/src/gallium/drivers/r600/r600_state_inlines.h
+++ b/src/gallium/drivers/r600/r600_state_inlines.h
@@ -132,6 +132,9 @@ static INLINE uint32_t r600_translate_fill(uint32_t func)
 		return 1;
 	case PIPE_POLYGON_MODE_POINT:
 		return 0;
+	default:
+		assert(0);
+		return 0;
 	}
 }
 




More information about the mesa-commit mailing list