+2007-11-21 Mark Rowe <mrowe@apple.com>
+
+ Reviewed by Eric.
+
+ Fix JavaScriptGlue to build without warnings using GCC 4.2.
+
+ * Configurations/Base.xcconfig:
+ * JSRun.h:
+
2007-11-17 Mark Rowe <mrowe@apple.com>
Reviewed by Darin Adler.
PREBINDING = NO;
VALID_ARCHS = i386 ppc x86_64 ppc64;
WARNING_CFLAGS = $(WARNING_CFLAGS_$(CURRENT_ARCH));
-WARNING_CFLAGS_BASE = -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wno-long-double -Wundef -Wno-strict-aliasing;
+WARNING_CFLAGS_BASE = -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wundef -Wno-strict-aliasing;
WARNING_CFLAGS_ = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
WARNING_CFLAGS_i386 = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
WARNING_CFLAGS_ppc = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
JSFlags Flags() const { return fJSFlags; }
protected:
- virtual JSInterpreter::~JSInterpreter() { } // only deref on the base class should delete us
+ virtual ~JSInterpreter() { } // only deref on the base class should delete us
private:
JSFlags fJSFlags;
+2007-11-21 Mark Rowe <mrowe@apple.com>
+
+ Reviewed by Eric.
+
+ Fix WebCore to build without warnings under GCC 4.2.
+
+ * Configurations/Base.xcconfig:
+ * css/CSSRuleList.cpp:
+ (WebCore::CSSRuleList::deleteRule):
+ * css/CSSStyleSelector.cpp:
+ (WebCore::CSSStyleSelector::locateSharedStyle):
+ * html/HTMLParser.cpp:
+ (WebCore::HTMLParser::allowNestedRedundantTag):
+ * rendering/RenderBlock.cpp:
+ (WebCore::RenderBlock::fillInlineSelectionGaps):
+ (WebCore::RenderBlock::fillBlockSelectionGaps):
+ * rendering/RenderLayer.cpp:
+ (WebCore::RenderLayer::stackingContext):
+ (WebCore::RenderLayer::enclosingPositionedAncestor):
+ (WebCore::RenderLayer::transparentAncestor):
+ * rendering/RenderStyle.cpp:
+ (WebCore::BackgroundLayer::fillUnsetProperties):
+ (WebCore::Transition::fillUnsetProperties):
+ * rendering/RenderText.cpp:
+ (WebCore::RenderText::containsOnlyWhitespace):
+ * rendering/bidi.cpp:
+ (WebCore::RenderBlock::determineStartPosition):
+
2007-11-21 Alp Toker <alp@atoker.com>
Reviewed by Mark Rowe.
PREBINDING = NO;
VALID_ARCHS = i386 ppc x86_64 ppc64;
WARNING_CFLAGS = $(WARNING_CFLAGS_$(CURRENT_ARCH));
-WARNING_CFLAGS_BASE = -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wno-long-double -Wundef;
+WARNING_CFLAGS_BASE = -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wundef;
WARNING_CFLAGS_ = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
WARNING_CFLAGS_i386 = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
WARNING_CFLAGS_ppc = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
CSSRule* rule = m_lstCSSRules.take(index);
if (rule)
rule->deref();
- else
- ; // FIXME: Throw INDEX_SIZE_ERR exception here
+ // FIXME: Throw INDEX_SIZE_ERR exception here if !rule
}
void CSSRuleList::append(CSSRule* rule)
// Check previous siblings.
unsigned count = 0;
Node* n;
- for (n = element->previousSibling(); n && !n->isElementNode(); n = n->previousSibling());
+ for (n = element->previousSibling(); n && !n->isElementNode(); n = n->previousSibling()) { }
while (n) {
if (canShareStyleWithElement(n))
return n->renderStyle();
if (count++ == cStyleSearchThreshold)
return 0;
- for (n = n->previousSibling(); n && !n->isElementNode(); n = n->previousSibling());
+ for (n = n->previousSibling(); n && !n->isElementNode(); n = n->previousSibling()) { }
}
if (!n)
n = locateCousinList(static_cast<Element*>(element->parentNode()));
return n->renderStyle();
if (count++ == cStyleSearchThreshold)
return 0;
- for (n = n->previousSibling(); n && !n->isElementNode(); n = n->previousSibling());
+ for (n = n->previousSibling(); n && !n->isElementNode(); n = n->previousSibling()) { }
}
}
return 0;
unsigned i = 0;
for (HTMLStackElem* curr = blockStack;
i < cMaxRedundantTagDepth && curr && curr->tagName == tagName;
- curr = curr->next, i++);
+ curr = curr->next, i++) { }
return i != cMaxRedundantTagDepth;
}
RootInlineBox* lastSelectedLine = 0;
RootInlineBox* curr;
- for (curr = firstRootBox(); curr && !curr->hasSelectedChildren(); curr = curr->nextRootBox());
+ for (curr = firstRootBox(); curr && !curr->hasSelectedChildren(); curr = curr->nextRootBox()) { }
// Now paint the gaps for the lines.
for (; curr && curr->hasSelectedChildren(); curr = curr->nextRootBox()) {
// Go ahead and jump right to the first block child that contains some selected objects.
RenderObject* curr;
- for (curr = firstChild(); curr && curr->selectionState() == SelectionNone; curr = curr->nextSibling());
+ for (curr = firstChild(); curr && curr->selectionState() == SelectionNone; curr = curr->nextSibling()) { }
for (bool sawSelectionEnd = false; curr && !sawSelectionEnd; curr = curr->nextSibling()) {
SelectionState childState = curr->selectionState();
RenderLayer* curr = parent();
for ( ; curr && !curr->m_object->isRenderView() && !curr->m_object->isRoot() &&
curr->m_object->style()->hasAutoZIndex();
- curr = curr->parent());
+ curr = curr->parent()) { }
return curr;
}
RenderLayer* curr = parent();
for ( ; curr && !curr->m_object->isRenderView() && !curr->m_object->isRoot() &&
!curr->m_object->isPositioned() && !curr->m_object->isRelPositioned();
- curr = curr->parent());
+ curr = curr->parent()) { }
return curr;
}
RenderLayer::transparentAncestor()
{
RenderLayer* curr = parent();
- for ( ; curr && !curr->isTransparent(); curr = curr->parent());
+ for ( ; curr && !curr->isTransparent(); curr = curr->parent()) { }
return curr;
}
void BackgroundLayer::fillUnsetProperties()
{
BackgroundLayer* curr;
- for (curr = this; curr && curr->isBackgroundImageSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundImageSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundXPositionSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundXPositionSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundYPositionSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundYPositionSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundAttachmentSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundAttachmentSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundClipSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundClipSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundCompositeSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundCompositeSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundOriginSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundOriginSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundRepeatSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundRepeatSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isBackgroundSizeSet(); curr = curr->next());
+ for (curr = this; curr && curr->isBackgroundSizeSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (BackgroundLayer* pattern = this; curr; curr = curr->next()) {
void Transition::fillUnsetProperties()
{
Transition* curr;
- for (curr = this; curr && curr->isTransitionDurationSet(); curr = curr->next());
+ for (curr = this; curr && curr->isTransitionDurationSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (Transition* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isTransitionRepeatCountSet(); curr = curr->next());
+ for (curr = this; curr && curr->isTransitionRepeatCountSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (Transition* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isTransitionTimingFunctionSet(); curr = curr->next());
+ for (curr = this; curr && curr->isTransitionTimingFunctionSet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (Transition* pattern = this; curr; curr = curr->next()) {
}
}
- for (curr = this; curr && curr->isTransitionPropertySet(); curr = curr->next());
+ for (curr = this; curr && curr->isTransitionPropertySet(); curr = curr->next()) { }
if (curr && curr != this) {
// We need to fill in the remaining values with the pattern specified.
for (Transition* pattern = this; curr; curr = curr->next()) {
unsigned currPos;
for (currPos = from;
currPos < from + len && ((*m_text)[currPos] == '\n' || (*m_text)[currPos] == ' ' || (*m_text)[currPos] == '\t');
- currPos++);
+ currPos++) { }
return currPos >= (from + len);
}
ASSERT(!firstLineBox() && !lastLineBox());
}
} else {
- for (curr = firstRootBox(); curr && !curr->isDirty(); curr = curr->nextRootBox());
+ for (curr = firstRootBox(); curr && !curr->isDirty(); curr = curr->nextRootBox()) { }
if (curr) {
// We have a dirty line.
if (RootInlineBox* prevRootBox = curr->prevRootBox()) {
+2007-11-21 Mark Rowe <mrowe@apple.com>
+
+ Reviewed by Eric.
+
+ Fix WebKit to build without warnings under GCC 4.2.
+
+ * Configurations/Base.xcconfig:
+
2007-11-21 Mark Rowe <mrowe@apple.com>
Reviewed by Tim Hatcher.
PREBINDING = NO;
VALID_ARCHS = i386 ppc x86_64 ppc64;
// FIXME: <rdar://problem/5070292> WebKit should build with -Wshorten-64-to-32
-WARNING_CFLAGS = -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wno-long-double -Wundef;
+WARNING_CFLAGS = -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wundef;
// <rdar://problem/5488678>: Production builds on 10.4 PowerPC need to have debugging symbols disabled to prevent a huge STABS section being generated.