Skip to content

Commit

Permalink
Bug 1205148 - Fix and disallow warnings in rdf/datasource/. r=froydnj.
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : a7711846139db9254ccdd6abd968b0f77621b8c6
  • Loading branch information
nnethercote committed Sep 30, 2015
1 parent 844ee8a commit 4cb1747
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions rdf/datasource/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ LOCAL_INCLUDES += [

if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wshadow']
else:
ALLOW_COMPILER_WARNINGS = True
2 changes: 1 addition & 1 deletion rdf/datasource/nsFileSystemDataSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4cb1747

Please sign in to comment.