mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Fix some minor build warnings.
This commit is contained in:
parent
347e202f7f
commit
f82b25d4f9
Notes:
sideshowbarker
2024-07-19 18:46:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f82b25d4f93
3 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,7 @@ inline time_t ktime(time_t* tloc)
|
|||
return 123;
|
||||
}
|
||||
|
||||
inline tm* klocaltime(time_t* t)
|
||||
inline tm* klocaltime(time_t*)
|
||||
{
|
||||
static tm timmy;
|
||||
return &timmy;
|
||||
|
|
|
@ -15,7 +15,6 @@ bool DiskDevice::read(DiskOffset offset, unsigned length, byte* out) const
|
|||
dword firstBlock = offset / blockSize();
|
||||
dword endBlock = (offset + length) / blockSize();
|
||||
byte* outptr = out;
|
||||
unsigned remainingCount = length;
|
||||
for (unsigned bi = firstBlock; bi < endBlock; ++bi) {
|
||||
if (!readBlock(bi, outptr))
|
||||
return false;
|
||||
|
|
|
@ -338,6 +338,7 @@ OwnPtr<FileHandle> VirtualFileSystem::open(const String& path)
|
|||
OwnPtr<FileHandle> VirtualFileSystem::create(const String& path)
|
||||
{
|
||||
// FIXME: Do the real thing, not just this fake thing!
|
||||
(void) path;
|
||||
m_rootNode->fileSystem()->createInode(m_rootNode->fileSystem()->rootInode(), "empty", 0100644, 0);
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -345,6 +346,7 @@ OwnPtr<FileHandle> VirtualFileSystem::create(const String& path)
|
|||
OwnPtr<FileHandle> VirtualFileSystem::mkdir(const String& path)
|
||||
{
|
||||
// FIXME: Do the real thing, not just this fake thing!
|
||||
(void) path;
|
||||
m_rootNode->fileSystem()->makeDirectory(m_rootNode->fileSystem()->rootInode(), "mydir", 0400755);
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue