소스 검색

Fix some minor build warnings.

Andreas Kling 6 년 전
부모
커밋
f82b25d4f9
3개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Kernel/ktime.h
  2. 0 1
      VirtualFileSystem/DiskDevice.cpp
  3. 2 0
      VirtualFileSystem/VirtualFileSystem.cpp

+ 1 - 1
Kernel/ktime.h

@@ -19,7 +19,7 @@ inline time_t ktime(time_t* tloc)
     return 123;
     return 123;
 }
 }
 
 
-inline tm* klocaltime(time_t* t)
+inline tm* klocaltime(time_t*)
 {
 {
     static tm timmy;
     static tm timmy;
     return &timmy;
     return &timmy;

+ 0 - 1
VirtualFileSystem/DiskDevice.cpp

@@ -15,7 +15,6 @@ bool DiskDevice::read(DiskOffset offset, unsigned length, byte* out) const
     dword firstBlock = offset / blockSize();
     dword firstBlock = offset / blockSize();
     dword endBlock = (offset + length) / blockSize();
     dword endBlock = (offset + length) / blockSize();
     byte* outptr = out;
     byte* outptr = out;
-    unsigned remainingCount = length;
     for (unsigned bi = firstBlock; bi < endBlock; ++bi) {
     for (unsigned bi = firstBlock; bi < endBlock; ++bi) {
         if (!readBlock(bi, outptr))
         if (!readBlock(bi, outptr))
             return false;
             return false;

+ 2 - 0
VirtualFileSystem/VirtualFileSystem.cpp

@@ -338,6 +338,7 @@ OwnPtr<FileHandle> VirtualFileSystem::open(const String& path)
 OwnPtr<FileHandle> VirtualFileSystem::create(const String& path)
 OwnPtr<FileHandle> VirtualFileSystem::create(const String& path)
 {
 {
     // FIXME: Do the real thing, not just this fake thing!
     // FIXME: Do the real thing, not just this fake thing!
+    (void) path;
     m_rootNode->fileSystem()->createInode(m_rootNode->fileSystem()->rootInode(), "empty", 0100644, 0);
     m_rootNode->fileSystem()->createInode(m_rootNode->fileSystem()->rootInode(), "empty", 0100644, 0);
     return nullptr;
     return nullptr;
 }
 }
@@ -345,6 +346,7 @@ OwnPtr<FileHandle> VirtualFileSystem::create(const String& path)
 OwnPtr<FileHandle> VirtualFileSystem::mkdir(const String& path)
 OwnPtr<FileHandle> VirtualFileSystem::mkdir(const String& path)
 {
 {
     // FIXME: Do the real thing, not just this fake thing!
     // FIXME: Do the real thing, not just this fake thing!
+    (void) path;
     m_rootNode->fileSystem()->makeDirectory(m_rootNode->fileSystem()->rootInode(), "mydir", 0400755);
     m_rootNode->fileSystem()->makeDirectory(m_rootNode->fileSystem()->rootInode(), "mydir", 0400755);
     return nullptr;
     return nullptr;
 }
 }