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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 3 08:07:23 UTC 2024


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

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
The problem with using mkstemp() is it returns a file descriptor. I need it to
return a file name.

Any way the warning can be turned off?

--


More information about the Digitalmars-d-bugs mailing list