2011-03-16 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
WebCore GYP build should build platform/
https://bugs.webkit.org/show_bug.cgi?id=56430
Adding platform/ to the GYP build required disabling
ALWAYS_SEARCH_USER_PATHS, which in turn required fixing some latent
style issues. I suspect we'll end up excluding some of these files
from the build in the final analysis, but we might as well fix the
style errors while we're here.
* bindings/js/JSMainThreadExecState.h:
* bindings/js/ScheduledAction.h:
* css/CSSPrimitiveValueCache.cpp:
* gyp/WebCore.gyp:
* platform/KillRingNone.cpp:
(WebCore::KillRing::append):
(WebCore::KillRing::prepend):
* platform/graphics/ContextShadow.h:
* platform/graphics/gpu/LoopBlinnPathProcessor.cpp:
(WebCore::LoopBlinnPathProcessor::buildContours):
(WebCore::TessellationState::combineCallback):
* platform/graphics/gpu/PODRedBlackTree.h:
(WebCore::PODRedBlackTree::updateNode):
(WebCore::PODRedBlackTree::logIfVerbose):
* platform/graphics/opengl/TextureMapperGL.cpp:
* platform/graphics/opengl/TextureMapperGL.h:
* platform/graphics/texmap/TextureMapper.h:
(WebCore::BitmapTexture::save):
(WebCore::TextureMapper::paintToTarget):
* platform/graphics/texmap/TextureMapperNode.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/platform/graphics/gpu/LoopBlinnPathProcessor.cpp b/Source/WebCore/platform/graphics/gpu/LoopBlinnPathProcessor.cpp
index 5439885..a96213c 100644
--- a/Source/WebCore/platform/graphics/gpu/LoopBlinnPathProcessor.cpp
+++ b/Source/WebCore/platform/graphics/gpu/LoopBlinnPathProcessor.cpp
@@ -42,6 +42,8 @@
#include <algorithm>
#include <wtf/Assertions.h>
#include <wtf/FastMalloc.h>
+#include <wtf/UnusedParam.h>
+
#if USE(SKIA)
#include "SkGeometry.h"
@@ -701,6 +703,7 @@
}
} while (verb != SkPath::kDone_Verb);
#else // !USE(SKIA)
+ UNUSED_PARAM(path);
// Must port to your platform.
ASSERT_NOT_REACHED();
#endif
@@ -1145,6 +1148,8 @@
GLfloat weight[4], void** outData,
void* polygonData)
{
+ UNUSED_PARAM(vertexData);
+ UNUSED_PARAM(weight);
TessellationState* state = static_cast<TessellationState*>(polygonData);
GLdouble* outVertex = static_cast<GLdouble*>(fastMalloc(3 * sizeof(GLdouble)));
state->allocatedPointers.append(outVertex);
diff --git a/Source/WebCore/platform/graphics/gpu/PODRedBlackTree.h b/Source/WebCore/platform/graphics/gpu/PODRedBlackTree.h
index bd08988..7dd9ddd 100644
--- a/Source/WebCore/platform/graphics/gpu/PODRedBlackTree.h
+++ b/Source/WebCore/platform/graphics/gpu/PODRedBlackTree.h
@@ -257,7 +257,7 @@
// properly update such summary information based only on the values
// in the left and right children. This method should return true if
// the node's summary information changed.
- virtual bool updateNode(Node* node) { return false; }
+ virtual bool updateNode(Node*) { return false; }
//----------------------------------------------------------------------
// Generic binary search tree operations
@@ -713,7 +713,7 @@
}
#ifdef NDEBUG
- void logIfVerbose(const char* output) const { }
+ void logIfVerbose(const char*) const { }
#else
void logIfVerbose(const char* output) const
{