Warnings patch for gcc 4.2.x

This patch fixes all of the warnings currently generated in trunk with
-Wall -Werror.

Mostly, this stubs out missing enums in switch statements. Also, note
the fix for InvalidDecl below.

Index: include/clang/AST/Decl.h

This patch fixes all of the warnings currently generated in trunk with
-Wall -Werror.

Mostly, this stubs out missing enums in switch statements. Also, note
the fix for InvalidDecl below.

Applied, thanks!

--- AST/Decl.cpp (revision 41989)
+++ AST/Decl.cpp (working copy)
@@ -105,6 +105,21 @@
     case ObjcInterface:
       nInterfaceDecls++;
       break;
+ case ObjcClass:
+ //FIXME add functionality here.
+ break;

For chunks like this, please change these to assert on the unimplemented case so we can find them easily if executed.

Thanks Justin,

-Chris