You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ncurses 6.3 introduced fprint-style format strings, which leads to pcurses not compiling:
build/pcurses/src/pcurses/src/cursesframe.cpp: In member function ‘virtual void CursesFrame::refresh()’:
/build/pcurses/src/pcurses/src/cursesframe.cpp:96:18: error: format not a string literal and no format arguments [-Werror=format-security]
96 | mvwprintw(w_border, 0, 1, header.c_str());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/pcurses/src/pcurses/src/cursesframe.cpp:99:18: error: format not a string literal and no format arguments [-Werror=format-security]
99 | mvwprintw(w_border, w_border->_maxy, 1, footer.c_str());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/pcurses/src/pcurses/src/cursesframe.cpp: In member function ‘void CursesFrame::printw(std::string, int)’:
/build/pcurses/src/pcurses/src/cursesframe.cpp:111:12: error: format not a string literal and no format arguments [-Werror=format-security]
111 | wprintw(w_main, fitstrtowin(str).c_str());
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/pcurses/src/pcurses/src/cursesframe.cpp: In member function ‘void CursesFrame::mvprintw(int, int, std::string, int)’:
/build/pcurses/src/pcurses/src/cursesframe.cpp:122:14: error: format not a string literal and no format arguments [-Werror=format-security]
122 | mvwprintw(w_main, y, x, fitstrtowin(str, x).c_str());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
dvzrv
added a commit
to dvzrv/pcurses
that referenced
this issue
Dec 30, 2021
src/cursesframe.cpp:
Change occurrences of `wprintw()` and `mvwprintw()` to use the new
fprint-style format string, introduced with ncurses 6.3.
Fixesschuay#7
Ncurses 6.3 introduced fprint-style format strings, which leads to pcurses not compiling:
The text was updated successfully, but these errors were encountered: