• R/O
  • SSH
  • HTTPS

iutest: Commit


Commit MetaInfo

Revision1315 (tree)
Time2018-04-18 22:17:38
Authorsrz_zumix

Log Message

setbuf to setvbuf

git@712f31d758a0b3de30fa70c57b64eb6bd131873c
https://github.com/srz-zumix/iutest/commit/712f31d758a0b3de30fa70c57b64eb6bd131873c


fix wraning #53

git@2a84994d6980e91ca1c3df292a46a68f406f41ab

Change Summary

Incremental Difference

--- trunk/include/internal/iutest_port.hpp (revision 1314)
+++ trunk/include/internal/iutest_port.hpp (revision 1315)
@@ -290,10 +290,8 @@
290290
291291 ~IUStreamBuffer()
292292 {
293-IUTEST_PRAGMA_CRT_SECURE_WARN_DISABLE_BEGIN()
294293 fflush(m_fp);
295- setbuf(m_fp, NULL);
296-IUTEST_PRAGMA_CRT_SECURE_WARN_DISABLE_END()
294+ setvbuf(m_fp, NULL, _IONBF, 0);
297295 }
298296
299297 public:
Show on old repository browser