Ticket #4507 (closed defect: fixed)
[with patch, positive review] compile warning for planarity code
| Reported by: | jason | Owned by: | rlm |
|---|---|---|---|
| Priority: | major | Milestone: | sage-3.2 |
| Component: | graph theory | Keywords: | |
| Cc: | ekirkman, bober | Work issues: | |
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
I get the following compile warning:
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jason/sage/local//include -I/home/jason/sage/local//include/csage -I/home/jason/sage/devel//sage/sage/ext -I/home/jason/sage/local/include/python2.5 -c sage/graphs/planarity/graphEmbed.c -o build/temp.linux-i686-2.5/sage/graphs/planarity/graphEmbed.o sage/graphs/planarity/graphEmbed.c: In function ‘_CreateSortedSeparatedDFSChildLists’: sage/graphs/planarity/graphEmbed.c:84: warning: implicit declaration of function ‘memset’ sage/graphs/planarity/graphEmbed.c:84: warning: incompatible implicit declaration of built-in function ‘memset’
I fixed this by adding #include <string.h> (which declares the memset function) to listcoll.h (where the LCReset macro is defined).
Attachments
Change History
comment:1 Changed 5 years ago by jason
- Summary changed from compile warning for planarity code to [with patch, needs review] compile warning for planarity code
Note: See
TracTickets for help on using
tickets.

