[Bug 195869] New: games/openttd: fix build with new freetype2
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 11 02:24:13 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195869
Bug ID: 195869
Summary: games/openttd: fix build with new freetype2
Product: Ports Tree
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: danfe at FreeBSD.org
Reporter: amdmi3 at FreeBSD.org
Assignee: danfe at FreeBSD.org
Flags: maintainer-feedback?(danfe at FreeBSD.org)
Created attachment 150453
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150453&action=edit
Fix
---
/wrkdirs/usr/ports/games/openttd/work/openttd-1.4.4/src/fontcache.cpp:530:15:
error: no matching function for call to 'max'
int width = max(1, slot->bitmap.width + (this->fs == FS_NORMAL));
^~~
/wrkdirs/usr/ports/games/openttd/work/openttd-1.4.4/src/core/math_func.hpp:38:17:
note: candidate template ignored: deduced conflicting types for parameter 'T'
('int' vs. 'unsigned int')
static inline T max(const T a, const T b)
^
/wrkdirs/usr/ports/games/openttd/work/openttd-1.4.4/src/fontcache.cpp:531:15:
error: no matching function for call to 'max'
int height = max(1, slot->bitmap.rows + (this->fs == FS_NORMAL));
^~~
/wrkdirs/usr/ports/games/openttd/work/openttd-1.4.4/src/core/math_func.hpp:38:17:
note: candidate template ignored: deduced conflicting types for parameter 'T'
('int' vs. 'unsigned int')
static inline T max(const T a, const T b)
^
---
Fix attached. If you commit this yourself, don't forget to MFH.
--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer danfe at FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list