Mercury Bugs - mercury
View Issue Details
0000379mercuryBugpublic2015-02-18 02:062015-02-19 01:38
Reportermvd23jsdf4 
Assigned Tojuliensf 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformx86_64OSFedoraOS Version21
Product Version 
Target VersionFixed in Version 
Summary0000379: GCC 4.9.2 Giving Error
DescriptionThe GCC (version 4.9.2) on Fedora 21 is showing warnings on compile. See the attached file crypt.m.
Steps To Reproduce    [mercuryuser@localhost crypt]$ mmc --make --debug crypt
    Making Mercury/int3s/crypt.int3
    Making Mercury/ints/crypt.int
    Making Mercury/cs/crypt.c
    Making Mercury/os/crypt.o
    Making crypt
    In file included from /usr/include/stdlib.h:24:0,
                     from /home/mercuryuser/local/lib/mercury/inc/mercury_std.h:23,
                     from /home/mercuryuser/local/lib/mercury/inc/mercury_goto.h:13,
                     from /home/mercuryuser/local/lib/mercury/inc/mercury_init.h:84,
                     from Mercury/cs/crypt_init.c:18:
    /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 /home/mercuryuser/local/lib/mercury/inc/mercury_std.h:23,
                     from /home/mercuryuser/local/lib/mercury/inc/mercury_goto.h:13,
                     from /home/mercuryuser/local/lib/mercury/inc/mercury_init.h:84,
                     from Mercury/cs/crypt_init.c:18:
    /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 `crypt.err' for the complete log.

TagsNo tags attached.
Attached Files? crypt.m (1,147) 2015-02-18 02:06
https://bugs.mercurylang.org/file_download.php?file_id=236&type=bug

Notes
(0000812)
juliensf   
2015-02-19 01:18   
The generated _init.c files define _BSD_SOURCE for some reason.
(0000813)
juliensf   
2015-02-19 01:38   
Fixed in commit b70619d.

Issue History
2015-02-18 02:06mvd23jsdf4New Issue
2015-02-18 02:06mvd23jsdf4File Added: crypt.m
2015-02-19 01:16juliensfAssigned To => juliensf
2015-02-19 01:16juliensfStatusnew => assigned
2015-02-19 01:18juliensfNote Added: 0000812
2015-02-19 01:38juliensfNote Added: 0000813
2015-02-19 01:38juliensfStatusassigned => resolved
2015-02-19 01:38juliensfResolutionopen => fixed