* fix the single remaining gcc2-warning in media kit and enable -Werror for it

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38266 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-19 15:46:54 +00:00
parent 269ebc04b9
commit 1662a36480
2 changed files with 5 additions and 9 deletions

View File

@ -1377,7 +1377,7 @@ if $(HAIKU_NO_WERROR) != 1 {
EnableWerror src kits interface ;
EnableWerror src kits locale ;
EnableWerror src kits mail ;
# EnableWerror src kits media ; # gcc2
EnableWerror src kits media ;
EnableWerror src kits midi ;
EnableWerror src kits midi2 ;
EnableWerror src kits network ;

View File

@ -19,13 +19,6 @@
/*************************************************************
* public BAbstractBufferStream
*************************************************************/
#if __GNUC__ > 3
BAbstractBufferStream::~BAbstractBufferStream()
{
}
#endif
status_t
BAbstractBufferStream::GetStreamParameters(size_t *bufferSize,
int32 *bufferCount,
@ -186,7 +179,10 @@ void *
BBufferStream::operator new(size_t size)
{
UNIMPLEMENTED();
return NULL;
void *dummy = NULL;
// just to circumvent a warning that operator new should not return NULL
return dummy;
}