Bug 1205148 - Fix and disallow warnings in rdf/datasource/. r=froydnj.

This commit is contained in:
Nicholas Nethercote 2015-09-29 17:03:07 -07:00
parent c5ff6fa21d
commit 3f8f7ea3d1
2 changed files with 1 additions and 3 deletions

View File

@ -23,5 +23,3 @@ LOCAL_INCLUDES += [
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wshadow']
else:
ALLOW_COMPILER_WARNINGS = True

View File

@ -851,7 +851,7 @@ FileSystemDataSource::GetVolumeList(nsISimpleEnumerator** aResult)
for (volNum = 0; volNum < 26; volNum++)
{
swprintf( drive, L"%c:\\", volNum + (char16_t)'A');
swprintf_s(drive, 32, L"%c:\\", volNum + (char16_t)'A');
driveType = GetDriveTypeW(drive);
if (driveType != DRIVE_UNKNOWN && driveType != DRIVE_NO_ROOT_DIR)