ports/158558: [PATCH] fix games/blackjack to build using clang
Niclas Zeising
niclas.zeising at gmail.com
Fri Jul 1 09:10:03 UTC 2011
>Number: 158558
>Category: ports
>Synopsis: [PATCH] fix games/blackjack to build using clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 01 09:10:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Niclas Zeising
>Release: FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root at vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64
>Description:
>How-To-Repeat:
>Fix:
Attached patch fixes games/blackjack to build using clang by adding a return type to main as per standard.
--- games.blackjack.clangfix.diff begins here ---
Index: files/patch-main.cpp
===================================================================
RCS file: files/patch-main.cpp
diff -N files/patch-main.cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-main.cpp 1 Jul 2011 09:02:14 -0000
@@ -0,0 +1,10 @@
+--- main.cpp.orig 1998-02-11 05:33:13.000000000 +0100
++++ main.cpp 2011-07-01 11:00:18.000000000 +0200
+@@ -42,6 +42,7 @@
+
+ //*****************************************************************************
+
++int
+ main ( int argc, char **argv ) {
+ QFont font("adobe", 12, QFont::Bold);
+ QFont::setDefaultFont(font);
--- games.blackjack.clangfix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list