--- a/src/output.cpp +++ b/src/output.cpp @@ -364,7 +364,7 @@ scoped_push push(&s_tputs_receiver, this); // On some systems, tputs takes a char*, on others a const char*. // Like tparm, we just cast it to unconst, that should work everywhere. - return tputs(const_cast(str), affcnt, tputs_writer); + return tputs(const_cast(str), affcnt, (int (*)(int)) tputs_writer); } /// Write a wide character to the outputter. This should only be used when writing characters from