summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-11 19:12:07 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-11 19:12:07 +0000
commit3975e6e094b6557215748d91c89394cb54532c23 (patch)
treef814aac45540e4cc1ff73cbc8ff0b17646c6308b /webkit
parentce30da19b5ac11c5681ef44b6cd49ddc39c0743d (diff)
downloadchromium_src-3975e6e094b6557215748d91c89394cb54532c23.zip
chromium_src-3975e6e094b6557215748d91c89394cb54532c23.tar.gz
chromium_src-3975e6e094b6557215748d91c89394cb54532c23.tar.bz2
Some changes necessary to build an optimized binary on Linux.
Two other speedup changes that I'm not including: root_env = Environment( tools = ['component_setup'], + RPATH=[], And linux_env.Tool('target_platform_linux') -linux_env.Tool('target_debug') +linux_env.Tool('target_optimized') Review URL: http://codereview.chromium.org/10292 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/build/V8Bindings/SConscript13
-rw-r--r--webkit/port/bindings/v8/npruntime.cpp2
-rw-r--r--webkit/port/platform/graphics/GraphicsContextSkia.cpp2
-rw-r--r--webkit/port/platform/image-decoders/jpeg/JPEGImageDecoder.cpp2
-rw-r--r--webkit/tools/test_shell/event_sending_controller.cc1
5 files changed, 14 insertions, 6 deletions
diff --git a/webkit/build/V8Bindings/SConscript b/webkit/build/V8Bindings/SConscript
index 4517df0..9d904cb 100644
--- a/webkit/build/V8Bindings/SConscript
+++ b/webkit/build/V8Bindings/SConscript
@@ -26,10 +26,15 @@ if env['PLATFORM'] == 'win32':
else:
# We need to include the parts of icu and libxml that we want here:
env.Append(
- CPPPATH = [
- '$ICU38_DIR/public/common',
- '$LIBXML_DIR/include',
- ])
+ CCFLAGS = [
+ # TODO(port): fix HTMLNames etc. generator and remove this.
+ '-fno-strict-aliasing',
+ ],
+ CPPPATH = [
+ '$ICU38_DIR/public/common',
+ '$LIBXML_DIR/include',
+ ]
+ )
inputs = [
'$SHARED_DIR/PausedTimeouts.cpp',
diff --git a/webkit/port/bindings/v8/npruntime.cpp b/webkit/port/bindings/v8/npruntime.cpp
index f47790a..df30e13 100644
--- a/webkit/port/bindings/v8/npruntime.cpp
+++ b/webkit/port/bindings/v8/npruntime.cpp
@@ -321,7 +321,9 @@ void _NPN_UnregisterObject(NPObject* obj) {
ASSERT(g_root_objects.find(obj) != g_root_objects.end());
NPObjectSet* set = g_root_objects[obj];
while (set->size() > 0) {
+#ifndef NDEBUG
size_t size = set->size();
+#endif
NPObject* sub_object = *(set->begin());
// The sub-object should not be a owner!
ASSERT(g_root_objects.find(sub_object) == g_root_objects.end());
diff --git a/webkit/port/platform/graphics/GraphicsContextSkia.cpp b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
index 59e694e..4c3f045 100644
--- a/webkit/port/platform/graphics/GraphicsContextSkia.cpp
+++ b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
@@ -753,7 +753,7 @@ void GraphicsContext::setPlatformShadow(const IntSize& size, int blur, const Col
if (color.isValid())
c = color.rgb();
else
- SkColorSetARGB(0xFF/3, 0, 0, 0); // "std" apple shadow color
+ c = SkColorSetARGB(0xFF/3, 0, 0, 0); // "std" apple shadow color
SkDrawLooper* dl = new SkBlurDrawLooper(SkIntToScalar(blur),
SkIntToScalar(size.width()),
diff --git a/webkit/port/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/webkit/port/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
index ebdbbaf..157b2ad 100644
--- a/webkit/port/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+++ b/webkit/port/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
@@ -98,7 +98,7 @@ public:
/* Allocate and initialize JPEG decompression object */
jpeg_create_decompress(&m_info);
- decoder_source_mgr* src;
+ decoder_source_mgr* src = NULL;
if (!m_info.src) {
src = (decoder_source_mgr*)fastCalloc(sizeof(decoder_source_mgr), 1);
if (!src) {
diff --git a/webkit/tools/test_shell/event_sending_controller.cc b/webkit/tools/test_shell/event_sending_controller.cc
index aea9aed..dc27f68 100644
--- a/webkit/tools/test_shell/event_sending_controller.cc
+++ b/webkit/tools/test_shell/event_sending_controller.cc
@@ -367,6 +367,7 @@ int EventSendingController::GetButtonNumberFromSingleArg(
}
#elif defined(OS_LINUX)
// TODO(agl): We obviously need to do something about keycodes here
+ code = 0; // Appease variable-used-without-initialization compiler warning.
if (true) {
NOTIMPLEMENTED();
}