Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mkstemp instead of tmpnam in sstregistertool.cc #991

Closed
berquist opened this issue Sep 26, 2023 · 1 comment
Closed

Use mkstemp instead of tmpnam in sstregistertool.cc #991

berquist opened this issue Sep 26, 2023 · 1 comment
Assignees
Labels

Comments

@berquist
Copy link
Member

As part of #983 I unwittingly used a deprecated function:

/Users/ejberqu/development/sst/github/sst-core/src/sst/core/sstregistertool.cc:153:39: warning: 'tmpnam' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations]
    const auto        tempfile = std::tmpnam(nullptr);
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:189:1: note: 'tmpnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
@berquist berquist self-assigned this Sep 26, 2023
@berquist
Copy link
Member Author

Done in #993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant