reiserfs: enable -Werror

Change-Id: I2f431efee7b5d75c33bf6355e2a9e61ed233465c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5437
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
PulkoMandy 2022-07-08 10:36:33 +02:00 committed by Adrien Destugues
parent acdb3654fe
commit 5d1501ed1b
3 changed files with 4 additions and 2 deletions

View File

@ -734,7 +734,7 @@ rule ArchitectureSetupWarnings architecture
# EnableWerror src add-ons kernel file_systems ntfs ;
EnableWerror src add-ons kernel file_systems packagefs ;
# EnableWerror src add-ons kernel file_systems ramfs ;
# EnableWerror src add-ons kernel file_systems reiserfs ;
EnableWerror src add-ons kernel file_systems reiserfs ;
EnableWerror src add-ons kernel file_systems udf ;
EnableWerror src add-ons kernel file_systems userlandfs ;
EnableWerror src add-ons kernel file_systems xfs ;

View File

@ -1324,7 +1324,7 @@ StreamReader::ReadAt(off_t position, void *buffer, size_t bufferSize,
// compute the number of bytes that acually have to be read
if (error == B_OK) {
if (position < fStreamSize) {
if (position + bufferSize > fStreamSize)
if (position + (off_t)bufferSize > fStreamSize)
bufferSize = fStreamSize - position;
} else
bufferSize = 0;

View File

@ -142,6 +142,7 @@ Settings::HiddenEntryAt(int32 index) const
void
Settings::Dump()
{
#if DEBUG
PRINT(("Settings:\n"));
PRINT((" default volume name: `%s'\n", GetDefaultVolumeName()));
PRINT((" volume name: `%s'\n", GetVolumeName()));
@ -149,6 +150,7 @@ Settings::Dump()
PRINT((" %" B_PRId32 " hidden entries:\n", fHiddenEntries.CountItems()));
for (int32 i = 0; const char *entry = HiddenEntryAt(i); i++)
PRINT((" `%s'\n", entry));
#endif
}
// _Init