ramfs: Fix miscellaneous warnings.

This commit is contained in:
Augustin Cavalier
2019-08-30 20:53:29 -04:00
parent 2914364270
commit 349ab0050a
3 changed files with 7 additions and 10 deletions
@@ -286,7 +286,7 @@ class Term {
virtual bool NeedsEntry() = 0;
#ifdef DEBUG
#if DEBUG
virtual void PrintToStream() = 0;
#endif
@@ -329,7 +329,7 @@ class Equation : public Term {
virtual bool NeedsEntry();
#ifdef DEBUG
#if DEBUG
virtual void PrintToStream();
#endif
@@ -375,7 +375,7 @@ class Operator : public Term {
virtual bool NeedsEntry();
//Term *Copy() const;
#ifdef DEBUG
#if DEBUG
virtual void PrintToStream();
#endif
@@ -1389,7 +1389,7 @@ Operator::Copy() const
// #pragma mark -
#ifdef DEBUG
#if DEBUG
void
Operator::PrintToStream()
{
@@ -127,9 +127,7 @@ String::Truncate(int32 newLength)
newLength = 0;
if (newLength < fLength) {
char *string = fString;
int32 len = fLength;
fString = NULL;
len = 0;
if (!_SetTo(string, newLength)) {
fString = string;
fLength = newLength;
@@ -147,7 +147,7 @@ ramfs_read_fs_info(fs_volume* _volume, struct fs_info *info)
strcpy(info->fsh_name, "ramfs");
} else
SET_ERROR(error, B_ERROR);
return B_OK;
return error;
}
@@ -916,7 +916,7 @@ ramfs_close(fs_volume* _volume, fs_vnode* _node, void* /*cookie*/)
notify_if_stat_changed(volume, node);
} else
SET_ERROR(error, B_ERROR);
return B_OK;
return error;
}
@@ -1632,8 +1632,7 @@ ramfs_close_attr(fs_volume* _volume, fs_vnode* _node, void* _cookie)
notify_if_stat_changed(volume, node);
} else
SET_ERROR(error, B_ERROR);
return B_OK;
return error;
}