Technical article 120042

lint returns "warning: function actually returns double: nanf" on Unixware 7

OpenServer 6.0.0UnixWare 7.1.1UnixWare 7.1.2UnixWare 7.1.3UnixWare 7.1.4Open UNIX 8

Written · Last revised

Problem

Running lint against my C program returns a warning if math.h is included:

math.h (as included in foo.c)
=================
(174) warning: function actually returns double: _nanf
(449) warning: function actually returns double: nanf

Solution

There is no functionality problem with nanf/_nanf and the warning can be safely ignored.

This has been reported to SCO Engineering and appears fixed in later releases of UnixWare7 and OpenServer6.

NOTES:    When using "lint" on OpenServer6, ensure /usr/tmp exists with
          permissions 1755 first.

From the Xinuos technical article database, record 120042. Reproduced with permission. The original is at www.sco.com/ta/120042, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.