freebsd-ports/games/xpacman/files/patch-pac.h
Tobias Kortkamp f34a4a891c games/xpacman: Fix build with Clang 6
./shapes.h:63:38: error: constant expression evaluates to 240 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
static SHAPETYPE pacman0_bits[]=    {0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x3f, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3f, 0xfc, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f};
                                     ^~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/xpacman-1.002.log
2018-07-30 09:38:55 +00:00

15 lines
697 B
C

./pac.h:36:30: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define PACTITLE "Pacman v. "VERSION" \xa9 1995,1999,2000 by Roar Thron\xe6s"
^
--- pac.h.orig 2018-07-30 09:36:15 UTC
+++ pac.h
@@ -33,7 +33,7 @@ void writetext(); //just draw text
//change my name and you will be sued!!!!!!!!!!!!!!!!!!!!!!!!!!
#ifndef VMS
-#define PACTITLE "Pacman v. "VERSION" \xa9 1995,1999,2000 by Roar Thron\xe6s"
+#define PACTITLE "Pacman v. " VERSION " \xa9 1995,1999,2000 by Roar Thron\xe6s"
#else
#define PACTITLE "Pacman v. 1_002 \xa9 1995,1999,2000 by Roar Thron\xe6s"
#endif