Bug 156588 - games/KnightCap: warning: "INFINITY" redefined
Summary: games/KnightCap: warning: "INFINITY" redefined
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-23 02:30 UTC by Kalten
Modified: 2011-06-03 14:50 UTC (History)
0 users

See Also:


Attachments
file.diff (627 bytes, patch)
2011-04-23 02:30 UTC, Kalten
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kalten 2011-04-23 02:30:10 UTC
When compiling games/KnightCap, there is a warning:
---SCHNIPP---
In file included from knightcap.c:7:
knightcap.h:219:1: warning: "INFINITY" redefined
In file included from includes.h:8,
                 from knightcap.c:5:
/usr/include/math.h:58:1: warning: this is the location of the previous definition
---schnapp---
Using /usr/include/math.h version seems to be not a good idea (too big).
Undefining it before defining it helps.

Fix: Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/games/KnightCap
make
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2011-06-03 14:39:30 UTC
State Changed
From-To: open->closed

Comitted, thanks
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-06-03 14:41:52 UTC
pav         2011-06-03 13:41:39 UTC

  FreeBSD ports repository

  Modified files:
    games/KnightCap/files patch-knightcap.h 
  Log:
  - Silence compile time warning
  
  PR:             ports/156588
  Submitted by:   Kalten <kalten@gmx.at>
  
  Revision  Changes    Path
  1.2       +13 -3     ports/games/KnightCap/files/patch-knightcap.h
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"