try to fix gcc5 build on buildbot.

* I'd only reproduce the kernel build failure locally, weird.
This commit is contained in:
Jérôme Duval
2016-03-04 20:23:17 +01:00
parent d958d336a8
commit 214f8799db
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -125,7 +125,8 @@ rule ArchitectureSetup architecture
if $(gccVersion[1]) >= 4 { if $(gccVersion[1]) >= 4 {
# -Wuninitialized gives too many false positives. # -Wuninitialized gives too many false positives.
HAIKU_WERROR_FLAGS_$(architecture) += -Wno-error=uninitialized ; HAIKU_WERROR_FLAGS_$(architecture) += -Wno-error=uninitialized
-Wno-error=maybe-uninitialized ;
# TODO: remove the -Wno-unused-but-set-variable option # TODO: remove the -Wno-unused-but-set-variable option
HAIKU_WERROR_FLAGS_$(architecture) += -Wno-unused-but-set-variable ; HAIKU_WERROR_FLAGS_$(architecture) += -Wno-unused-but-set-variable ;
@@ -634,7 +635,7 @@ rule ArchitectureSetupWarnings architecture
EnableWerror src preferences ; EnableWerror src preferences ;
EnableWerror src servers ; EnableWerror src servers ;
EnableWerror src system boot ; EnableWerror src system boot ;
EnableWerror src system kernel ; # EnableWerror src system kernel ;
EnableWerror src system libroot add-ons ; EnableWerror src system libroot add-ons ;
EnableWerror src system libroot os ; EnableWerror src system libroot os ;
EnableWerror src system libroot posix locale ; EnableWerror src system libroot posix locale ;
+1 -1
View File
@@ -675,7 +675,7 @@ PicturePlayer::_Play(const picture_player_callbacks& callbacks, void* userData,
while (pictureReader.Remaining() > 0) { while (pictureReader.Remaining() > 0) {
const picture_data_entry_header* header; const picture_data_entry_header* header;
const uint8* opData; const uint8* opData = NULL;
if (!pictureReader.Get(header) if (!pictureReader.Get(header)
|| !pictureReader.Get(opData, header->size)) { || !pictureReader.Get(opData, header->size)) {
return B_BAD_DATA; return B_BAD_DATA;