[Issue 24315] New: dmd/cpreprocess.d:87: warning: the use of `tmpnam' is dangerous, better use `mkstemp'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 2 12:42:01 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24315

          Issue ID: 24315
           Summary: dmd/cpreprocess.d:87: warning: the use of `tmpnam' is
                    dangerous, better use `mkstemp'
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

ld now gives the following warning when building dmd.

Offending line of code here:
https://github.com/dlang/dmd/blob/91e157558bd8a386cef97064f6a5d7c9f332b5d2/compiler/src/dmd/cpreprocess.d#L87

--


More information about the Digitalmars-d-bugs mailing list