Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2011 11:03:59 +0200 (CEST)
From:      Niclas Zeising <niclas.zeising@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158558: [PATCH] fix games/blackjack to build using clang
Message-ID:  <201107010903.p6193xrs015640@vincent.daemonic.se>
Resent-Message-ID: <201107010910.p619A314035892@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107010903.p6193xrs015640>