ramfs: Fix miscellaneous warnings.
This commit is contained in:
@@ -286,7 +286,7 @@ class Term {
|
|||||||
|
|
||||||
virtual bool NeedsEntry() = 0;
|
virtual bool NeedsEntry() = 0;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if DEBUG
|
||||||
virtual void PrintToStream() = 0;
|
virtual void PrintToStream() = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -329,7 +329,7 @@ class Equation : public Term {
|
|||||||
|
|
||||||
virtual bool NeedsEntry();
|
virtual bool NeedsEntry();
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if DEBUG
|
||||||
virtual void PrintToStream();
|
virtual void PrintToStream();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -375,7 +375,7 @@ class Operator : public Term {
|
|||||||
virtual bool NeedsEntry();
|
virtual bool NeedsEntry();
|
||||||
|
|
||||||
//Term *Copy() const;
|
//Term *Copy() const;
|
||||||
#ifdef DEBUG
|
#if DEBUG
|
||||||
virtual void PrintToStream();
|
virtual void PrintToStream();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1389,7 +1389,7 @@ Operator::Copy() const
|
|||||||
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if DEBUG
|
||||||
void
|
void
|
||||||
Operator::PrintToStream()
|
Operator::PrintToStream()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -127,9 +127,7 @@ String::Truncate(int32 newLength)
|
|||||||
newLength = 0;
|
newLength = 0;
|
||||||
if (newLength < fLength) {
|
if (newLength < fLength) {
|
||||||
char *string = fString;
|
char *string = fString;
|
||||||
int32 len = fLength;
|
|
||||||
fString = NULL;
|
fString = NULL;
|
||||||
len = 0;
|
|
||||||
if (!_SetTo(string, newLength)) {
|
if (!_SetTo(string, newLength)) {
|
||||||
fString = string;
|
fString = string;
|
||||||
fLength = newLength;
|
fLength = newLength;
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ ramfs_read_fs_info(fs_volume* _volume, struct fs_info *info)
|
|||||||
strcpy(info->fsh_name, "ramfs");
|
strcpy(info->fsh_name, "ramfs");
|
||||||
} else
|
} else
|
||||||
SET_ERROR(error, B_ERROR);
|
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);
|
notify_if_stat_changed(volume, node);
|
||||||
} else
|
} else
|
||||||
SET_ERROR(error, B_ERROR);
|
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);
|
notify_if_stat_changed(volume, node);
|
||||||
} else
|
} else
|
||||||
SET_ERROR(error, B_ERROR);
|
SET_ERROR(error, B_ERROR);
|
||||||
return B_OK;
|
return error;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user