Skip to content
Snippets Groups Projects
Verified Commit ce052fe7 authored by Benny Baumann's avatar Benny Baumann
Browse files

fix: Crash when calling ui::display::sync

parent 7b0568a9
No related branches found
No related tags found
No related merge requests found
CFLAGS += -march=native -masm=intel -g -Og -fsanitize=address,signed-integer-overflow,undefined -pedantic -Wall -Wextra -Werror -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Wshadow -Wformat=2 -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wwrite-strings -Wswitch-default -Wswitch-enum -Wconversion -Wunreachable-code -Winit-self -fno-strict-aliasing -Wno-unknown-warning-option
CXXFLAGS += ${CFLAGS} -std=c++11 -std=c++17 -Wuseless-cast -Weffc++ -I/usr/local/include
CXXFLAGS += ${CFLAGS} -std=c++11 -std=c++17 -Wuseless-cast -Weffc++ -I/usr/local/include -Wno-non-virtual-dtor
DEPFLAGS = -MT $@ -MMD -MP -MF $(patsubst ${OBJDIR}/%.o,${DEPDIR}/%.d,$@)
PODOMAIN ?= rmrf
......
#include "ui/display.hpp"
#include "lib/ncurses/ncurses.hpp"
#include "ui/view.hpp"
......
......@@ -15,7 +15,7 @@ namespace rmrf::ui {
* It implements some basic information handling and a registry for
* views.
*/
class display : std::enable_shared_from_this<display> {
class display : public std::enable_shared_from_this<display> {
public:
typedef display self_type;
typedef std::shared_ptr<self_type> ptr_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment