Opened 3 years ago

Closed 3 years ago

#12768 closed bug (fixed)

[Patch] media-add-ons/dvb/config.h: fix gcc6 build

Reported by: mt Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Add-Ons/Media Version: R1/Development
Keywords: add-ons/media/media-add-ons/dvb Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

Modify "BUILD" macro to fix "-Werror=literal-suffix" warnings.

C++ /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/add-ons/media/media-add-ons/dvb/DVBMediaAddon.o 
In file included from /home/haiku/haiku/haiku/src/add-ons/media/media-add-ons/dvb/DVBMediaAddon.cpp:28:0:
/home/haiku/haiku/haiku/src/add-ons/media/media-add-ons/dvb/config.h:30:27: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
 #define BUILD    __DATE__ " "__TIME__
                           ^
cc1plus: all warnings being treated as errors

C++ /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/add-ons/media/media-add-ons/dvb/DVBMediaNode.o 
In file included from /home/haiku/haiku/haiku/src/add-ons/media/media-add-ons/dvb/DVBMediaNode.cpp:52:0:
/home/haiku/haiku/haiku/src/add-ons/media/media-add-ons/dvb/config.h:30:27: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
 #define BUILD    __DATE__ " "__TIME__
                           ^
cc1plus: all warnings being treated as errors

Attachments (1)

0020-config.h-fix-gcc6-build.patch (781 bytes) - added by mt 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by mt

comment:1 Changed 3 years ago by mt

Has a Patch: set

comment:2 Changed 3 years ago by korli

+1

comment:3 Changed 3 years ago by waddlesplash

Resolution: fixed
Status: newclosed

Applied in hrev50308. Thanks!

Note: See TracTickets for help on using tickets.