← All bug reports

FS#875malloc.h is deprecated

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Medium
Priority
Low
Reported version
3.2.0
Operating system
Linux (All / Other)
Reported
2013-08-09 by kazmer
Closed
2013-08-09 by andrew

This concerns the third-party openNURBS project and should probably be reported there, but I failed to find a bug tracker or anything of the sort, so here it goes.

malloc.h is deprecated (it has not been required since at least SUSv2, ratified in 1997). Apparently FreeBSD takes a more explicit stance against the use of it than other systems. The attached patch does away with it in openNURBS (conservatively leaving it in on Linux, but that should not really be neccessary either).

This makes the openNURBS component buildable on FreeBSD (9).

Comments (1)

andrew 2013-08-09

Thanks. I've removed the malloc.h include entirely which seems to work fine on all other platforms supported by QCAD (Linux, Mac, Windows).