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

compiler warning on Windows #32

Closed
dirk-thomas opened this issue Jan 25, 2016 · 5 comments
Closed

compiler warning on Windows #32

dirk-thomas opened this issue Jan 25, 2016 · 5 comments

Comments

@dirk-thomas
Copy link
Member

file_ = fopen(filename, "a");

'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

http://ci.ros2.org/view/packaging/job/packaging_windows/103/warnings34Result/package.-318397937/

@scpeters
Copy link
Contributor

What do you think of scpeters@5c2d920

@dirk-thomas
Copy link
Member Author

The compiler wants something slightly different 😉 http://ci.ros2.org/view/packaging/job/packaging_windows/108/console

@scpeters
Copy link
Contributor

At least it was only two errors (I think). Hopefully scpeters@0e4574d is better

@dirk-thomas
Copy link
Member Author

scpeters added a commit to scpeters/console_bridge that referenced this issue Jan 26, 2016
Use fopen_s instead of fopen on Windows,
and check the error code.

Closes ros#32.
@scpeters
Copy link
Contributor

Ok, I squashed and submitted as #33

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

No branches or pull requests

2 participants