diff options
author | Matt Turner <[email protected]> | 2015-06-25 16:57:20 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-07-06 16:04:56 -0700 |
commit | b0334a9aeb9369fd20854ab2ef4b2ee0087492ab (patch) | |
tree | c331326944feb878c7b7a21ba91cc5f3dc3a2aac | |
parent | 7b06af9d3ca7310197d39d55fc52c265da4bc59e (diff) |
mesa: Convert some asserts into STATIC_ASSERT.
Reviewed-by: Chad Versace <[email protected]>
-rw-r--r-- | src/mesa/main/context.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index fdef41287f7..faa1de739d9 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -377,13 +377,12 @@ one_time_init( struct gl_context *ctx ) if (!api_init_mask) { GLuint i; - /* do some implementation tests */ - assert( sizeof(GLbyte) == 1 ); - assert( sizeof(GLubyte) == 1 ); - assert( sizeof(GLshort) == 2 ); - assert( sizeof(GLushort) == 2 ); - assert( sizeof(GLint) == 4 ); - assert( sizeof(GLuint) == 4 ); + STATIC_ASSERT(sizeof(GLbyte) == 1); + STATIC_ASSERT(sizeof(GLubyte) == 1); + STATIC_ASSERT(sizeof(GLshort) == 2); + STATIC_ASSERT(sizeof(GLushort) == 2); + STATIC_ASSERT(sizeof(GLint) == 4); + STATIC_ASSERT(sizeof(GLuint) == 4); _mesa_locale_init(); |