STEllAR-GROUP / octotiger

Astrophysics program simulating the evolution of star systems based on the fast multipole method on adaptive Octrees
http://octotiger.stellar-group.org/
Boost Software License 1.0
48 stars 17 forks source link

Fix print warnings #446

Closed G-071 closed 1 year ago

G-071 commented 1 year ago

In f27289f we added a custom print wrapper for unbuffered output (for debugging).

This is now causing a lot of annoying format-string security warnings. Moreover, it should not really be necessary, as we can alternatively just call std::setbuf once right at the beginning of the main function to get unbufferred output to stdout (for both std::cout and printf).

This PR hence removes the print custom function and add an option to call setbuf. It also fixes some HPX deprecation warnings I stumbled over while doing this.