Revert "Add extra warnings to match what Android uses."

This reverts commit d234662df1ffeb1bf45b2ade16c4acfb94f89450.

This change broke the build. Will resubmit after fixing warnings.

git-svn-id: http://skia.googlecode.com/svn/trunk@12311 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 917298f..770269f 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -149,22 +149,6 @@
     # The following section is common to linux + derivatives and android
     [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos", "android"]',
       {
-        'cflags': [
-          '-fno-exceptions',
-          '-fstrict-aliasing',
-        
-          '-Wall',
-          '-Wextra',
-          '-Winit-self',
-          '-Wpointer-arith',
-
-          '-Wno-unused-parameter',
-          '-Wno-c++11-extensions',
-        ],
-        'cflags_cc': [
-          '-fno-rtti',
-          '-Wnon-virtual-dtor',
-        ],
         'conditions': [
           [ 'skia_warnings_as_errors', {
             'cflags': [
@@ -245,6 +229,13 @@
             'defines': [ 'NDEBUG' ],
           },
         },
+        'cflags': [
+          '-Wall',
+          '-Wextra',
+          # suppressions below here were added for clang
+          '-Wno-unused-parameter',
+          '-Wno-c++11-extensions',
+        ],
         'conditions' : [
           [ 'skia_shared_lib', {
             'cflags': [
@@ -483,8 +474,14 @@
           '-llog',
         ],
         'cflags': [
+          '-Wall',
+          '-fno-exceptions',
+          '-fstrict-aliasing',
           '-fuse-ld=gold',
         ],
+        'cflags_cc': [
+          '-fno-rtti',
+        ],
         'conditions': [
           [ 'skia_shared_lib', {
             'cflags': [
diff --git a/gyp/poppler.gyp b/gyp/poppler.gyp
index 027aea3..5b53389 100644
--- a/gyp/poppler.gyp
+++ b/gyp/poppler.gyp
@@ -129,9 +129,6 @@
       'cflags': [
         '-w'
       ],
-      'cflags_cc!': [
-        '-fno-rtti'
-      ],
       'conditions': [
         ['skia_os == "linux"', {
           'include_dirs': [
diff --git a/platform_tools/android/gyp/dependencies.gypi b/platform_tools/android/gyp/dependencies.gypi
index bb0db71..82763be 100644
--- a/platform_tools/android/gyp/dependencies.gypi
+++ b/platform_tools/android/gyp/dependencies.gypi
@@ -42,7 +42,9 @@
         '../third_party/externals/expat/lib',
       ],
       'cflags': [
-        '-w',
+        '-Wall',
+        '-Wmissing-prototypes',
+        '-Wstrict-prototypes',
         '-fexceptions',
         '-DHAVE_EXPAT_CONFIG_H',
       ],
@@ -64,9 +66,12 @@
         '../third_party/externals/gif',
       ],
       'cflags': [
-        '-w',
+        '-Wno-format',
         '-DHAVE_CONFIG_H',
       ],
+      'cflags!': [
+        '-Wall',
+      ],
       'direct_dependent_settings': {
         'include_dirs': [
           '../third_party/externals/gif',
@@ -99,9 +104,11 @@
         '../third_party/externals/png',
       ],
       'cflags': [
-        '-w',
         '-fvisibility=hidden',
       ],
+      'cflags!': [
+        '-Wall',
+      ],
       'link_settings': {
         'libraries': [
           '-lz',
diff --git a/src/animator/SkScriptCallBack.h b/src/animator/SkScriptCallBack.h
index fefc482..dcbaf11 100644
--- a/src/animator/SkScriptCallBack.h
+++ b/src/animator/SkScriptCallBack.h
@@ -13,8 +13,6 @@
 
 class SkScriptCallBack {
 public:
-    virtual ~SkScriptCallBack() { }
-
     enum Type {
         kBox,
         kFunction,
diff --git a/src/core/SkBuffer.h b/src/core/SkBuffer.h
index 9791cf5..369d9c0 100644
--- a/src/core/SkBuffer.h
+++ b/src/core/SkBuffer.h
@@ -39,8 +39,6 @@
         fStop = (const char*)data + size;
     }
 
-    virtual ~SkRBuffer() { }
-
     /** Return the number of bytes that have been read from the beginning
         of the data pointer.
     */
diff --git a/src/gpu/gl/GrGLProgramEffects.h b/src/gpu/gl/GrGLProgramEffects.h
index 3320891..4572a42 100644
--- a/src/gpu/gl/GrGLProgramEffects.h
+++ b/src/gpu/gl/GrGLProgramEffects.h
@@ -129,8 +129,6 @@
  */
 class GrGLProgramEffectsBuilder {
 public:
-    virtual ~GrGLProgramEffectsBuilder() { }
-
     /**
      * Emits the effect's shader code, and stores the necessary uniforms internally.
      */
@@ -213,7 +211,6 @@
 class GrGLVertexProgramEffectsBuilder : public GrGLProgramEffectsBuilder {
 public:
     GrGLVertexProgramEffectsBuilder(GrGLFullShaderBuilder*, int reserveCount);
-    virtual ~GrGLVertexProgramEffectsBuilder() { }
 
     virtual void emitEffect(const GrEffectStage&,
                             GrGLProgramEffects::EffectKey,
@@ -301,7 +298,6 @@
 class GrGLTexGenProgramEffectsBuilder : public GrGLProgramEffectsBuilder {
 public:
     GrGLTexGenProgramEffectsBuilder(GrGLFragmentOnlyShaderBuilder*, int reserveCount);
-    virtual ~GrGLTexGenProgramEffectsBuilder() { }
 
     virtual void emitEffect(const GrEffectStage&,
                             GrGLProgramEffects::EffectKey,