Bug 1310399 - Fix -Wshadow warning in widget/nsBaseWidget.cpp. r=jimm

widget/nsBaseWidget.cpp:1970:14 [-Wshadow] declaration shadows a local variable
This commit is contained in:
Chris Peterson 2016-10-17 22:37:52 -07:00
parent 403c55a07b
commit e78e23c03d
2 changed files with 2 additions and 6 deletions

View File

@ -284,6 +284,3 @@ if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
CXXFLAGS += CONFIG['TK_CFLAGS']
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wno-error=shadow']

View File

@ -1967,9 +1967,8 @@ nsIWidget::SynthesizeNativeTouchTap(LayoutDeviceIntPoint aPoint, bool aLongTap,
}
if (!aLongTap) {
nsresult rv = SynthesizeNativeTouchPoint(pointerId, TOUCH_REMOVE,
return SynthesizeNativeTouchPoint(pointerId, TOUCH_REMOVE,
aPoint, 0, 0, nullptr);
return rv;
}
// initiate a long tap