summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-02-22 16:35:34 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-02-22 16:35:34 +0000
commit4f8b59d59b5500d1e025bbd07dbab74158f193c8 (patch)
tree6b5f5a4ec85ac087dbe5a87d98b490fe513c481f /src/mesa/shader
parent49ad2d4ed198babd7c89503f924b535740b3ed49 (diff)
silence a variety of compiler warnings
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_assemble.c6
-rw-r--r--src/mesa/shader/slang/slang_export.c6
-rw-r--r--src/mesa/shader/slang/slang_library_noise.c1
-rw-r--r--src/mesa/shader/slang/slang_storage.h2
4 files changed, 10 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/slang_assemble.c b/src/mesa/shader/slang/slang_assemble.c
index 6c05e71b8b..2e1e13d1f5 100644
--- a/src/mesa/shader/slang/slang_assemble.c
+++ b/src/mesa/shader/slang/slang_assemble.c
@@ -376,14 +376,16 @@ GLboolean _slang_cleanup_stack (slang_assemble_ctx *A, slang_operation *op)
slang_assembly_typeinfo_destruct (&ti);
return GL_FALSE;
}
- if (ti.spec.type != slang_spec_void)
- if (A->ref == slang_ref_force)
+ if (ti.spec.type != slang_spec_void) {
+ if (A->ref == slang_ref_force) {
size = 4;
+ }
else if (!sizeof_variable (A, &ti.spec, slang_qual_none, 0, &size))
{
slang_assembly_typeinfo_destruct (&ti);
return GL_FALSE;
}
+ }
slang_assembly_typeinfo_destruct (&ti);
/* if nonzero, free it from the stack */
diff --git a/src/mesa/shader/slang/slang_export.c b/src/mesa/shader/slang/slang_export.c
index 324dee2a40..8103994336 100644
--- a/src/mesa/shader/slang/slang_export.c
+++ b/src/mesa/shader/slang/slang_export.c
@@ -138,14 +138,14 @@ static GLuint extract_name (const char *name, char *parsed, GLuint *element, con
{
GLuint i;
- if (name[0] >= 'a' && name[0] <= 'z' || name[0] >= 'A' && name[0] <= 'Z' || name[0] == '_')
+ if ((name[0] >= 'a' && name[0] <= 'z') || (name[0] >= 'A' && name[0] <= 'Z') || name[0] == '_')
{
parsed[0] = name[0];
for (i = 1; i < EXTRACT_MAXLEN; i++)
{
- if (name[i] >= 'a' && name[i] <= 'z' || name[i] >= 'A' && name[i] <= 'Z' ||
- name[i] >= '0' && name[i] <= '9' || name[0] == '_')
+ if ((name[i] >= 'a' && name[i] <= 'z') || (name[i] >= 'A' && name[i] <= 'Z') ||
+ (name[i] >= '0' && name[i] <= '9') || name[0] == '_')
{
parsed[i] = name[i];
}
diff --git a/src/mesa/shader/slang/slang_library_noise.c b/src/mesa/shader/slang/slang_library_noise.c
index 05c6906d51..4dddf33e72 100644
--- a/src/mesa/shader/slang/slang_library_noise.c
+++ b/src/mesa/shader/slang/slang_library_noise.c
@@ -23,6 +23,7 @@
*/
#include "imports.h"
+#include "slang_library_noise.h"
/*
* SimplexNoise1234
diff --git a/src/mesa/shader/slang/slang_storage.h b/src/mesa/shader/slang/slang_storage.h
index 2a1ddffa0c..1815688ff9 100644
--- a/src/mesa/shader/slang/slang_storage.h
+++ b/src/mesa/shader/slang/slang_storage.h
@@ -81,6 +81,8 @@ typedef struct slang_storage_aggregate_
GLuint count;
} slang_storage_aggregate;
+struct slang_assembly_name_space_;
+
GLboolean slang_storage_aggregate_construct (slang_storage_aggregate *);
GLvoid slang_storage_aggregate_destruct (slang_storage_aggregate *);