View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0000479 | mercury | Bug | public | 2019-07-07 06:31 | 2019-07-07 11:51 | ||||
Reporter | user411 | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | Linux | OS | Debian | OS Version | 9 | ||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000479: warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE when compiling mercury code | ||||||||
Description | mmc --make hello2 Making Mercury/int3s/hello2.int3 Making Mercury/ints/hello2.int Making Mercury/cs/hello2.c Making Mercury/os/hello2.o Making hello2 In file included from /usr/include/stdlib.h:24:0, from /usr/lib/mercury/inc/mercury_std.h:23, from /usr/lib/mercury/inc/mercury_goto.h:13, from /usr/lib/mercury/inc/mercury_init.h:84, from Mercury/cs/hello2_init.c:16: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/stdlib.h:24:0, from /usr/lib/mercury/inc/mercury_std.h:23, from /usr/lib/mercury/inc/mercury_goto.h:13, from /usr/lib/mercury/inc/mercury_init.h:84, from Mercury/cs/hello2_init.c:16: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ... error log truncated, see `hello2.err' for the complete log. | ||||||||
Steps To Reproduce | Any mercury code gives me the same error. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
Notes | |
2019-07-07 07:03 |
It seems that compiling mercury code with : --cflags -D_DEFAULT_SOURCE do not show the warning messages anymore. |
wangp (developer) 2019-07-07 11:51 |
This was fixed in commit b70619d2f. Please use an ROTD or use your workaround. |