-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Linux] build error #1458
Comments
I mean it's true that we don't pass a format string to
|
I fixed it by appending two lines in gui.cpp diff --git a/libopenage/event/demo/gui.cpp b/libopenage/event/demo/gui.cpp
index f6fa6e2e..0724f63a 100644
--- a/libopenage/event/demo/gui.cpp
+++ b/libopenage/event/demo/gui.cpp
@@ -133,7 +133,7 @@ void Gui::init() {
int row = (y - buffer.size()) / 2;;
int col = (x - colwidth) / 2;
for (const auto &c : buffer) {
- mvprintw(row++, col, c);
+ mvprintw(row++, col, "%c", c);
}
attroff(COLOR_PAIR(COLOR_DEBUG));
@@ -206,7 +206,7 @@ void Gui::draw(const std::shared_ptr<PongState> &state, const curve::time_t &now
// show log
int msg_i = 0;
for (auto & msg : this->log_msgs) {
- mvprintw((6 + msg_i), state->display_boundary[0]/2 + 10, msg.c_str());
+ mvprintw((6 + msg_i), state->display_boundary[0]/2 + 10, "%msg.c_str()", msg.c_str() );
msg_i += 1;
}
: Then it compiles succesfully |
great :) |
Hello, I have the same error on Arch Linux, GCC 11.1.0 and Clang 13.0.1
Tried your patches, they're working |
cloned the repo and configured it. when running make I get the following error:
Then the build fails. OS is debian testing and gcc 11
The text was updated successfully, but these errors were encountered: