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

Eliminate use of mktemp -- use mkstemp instead #42

Closed
wants to merge 24 commits into from

Conversation

gsjaardema
Copy link
Contributor

The use of mktemp() results in an unsuppressable warning message
on certain compilers, including gcc.  This causes problems for
projects which have rules regarding warning-free compiles.

Use mkstemp instead. The problem with mkstemp is that it opens the
file instead of just returning a unique file name.  However, as a
side effect it does change the template to a unique file name.
This can be used similarly to the return value from mktemp.

gsjaardema and others added 23 commits January 13, 2016 11:44
The use of mktemp() results in an unsuppressable warning message
on certain compilers, including gcc.  This causes problems for
projects which have rules regarding warning-free compiles.

Use mkstemp instead. The problem with mkstemp is that it opens the
file instead of just returning a unique file name.  However, as a
side effect it does change the template to a unique file name.
This can be used similarly to the return value from mktemp.
@tbeu
Copy link
Owner

tbeu commented Aug 24, 2016

Thanks. Fails on Win though: https://ci.appveyor.com/project/tbeu/matio/build/1.5.8+build.14#L303 Need to check.

@gsjaardema gsjaardema closed this Aug 24, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 328b6b7 on gsjaardema:master into * on tbeu:master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 328b6b7 on gsjaardema:master into * on tbeu:master*.

@tbeu tbeu added the invalid label Nov 5, 2018
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 this pull request may close these issues.

4 participants