Browse Source

Fixed warnings. Rebuilt Linux shaderc binary.

bkaradzic 12 years ago
parent
commit
db6cc187ca
3 changed files with 2 additions and 3 deletions
  1. 1 2
      3rdparty/fcpp/cpp3.c
  2. 1 1
      3rdparty/fcpp/cpp5.c
  3. BIN
      tools/bin/shaderc

+ 1 - 2
3rdparty/fcpp/cpp3.c

@@ -369,7 +369,6 @@ void deldefines(struct Global *global)
    * Delete the built-in #define's.
    */
   char **pp;
-  int i;
 
 
   /*
@@ -383,7 +382,7 @@ void deldefines(struct Global *global)
   /*
    * The magic pre-defines __FILE__ and __LINE__
    */
-  for (pp = global->magic, i = DEF_NOARGS; *pp != NULL; pp++) {
+  for (pp = global->magic; *pp != NULL; pp++) {
     defendel(global, *pp, TRUE);
   }
 #if OK_DATE

+ 1 - 1
3rdparty/fcpp/cpp5.c

@@ -806,7 +806,7 @@ int *evaleval(struct Global *global,
    *
    * evaleval() returns the new pointer to the top of the value stack.
    */
-  int v1, v2;
+  int v1, v2 = 0;
   
   if (isbinary(op))
     v2 = *--valp;

BIN
tools/bin/shaderc