1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 23:02:06 +00:00

Fix whiny build.

This commit is contained in:
Andreas Kling 2018-11-07 16:38:45 +01:00
parent 61a84193d7
commit 71bffa9864
3 changed files with 7 additions and 5 deletions

View file

@ -97,7 +97,7 @@ private:
CallableWrapper(const CallableWrapper&) = delete; CallableWrapper(const CallableWrapper&) = delete;
CallableWrapper& operator=(const CallableWrapper&) = delete; CallableWrapper& operator=(const CallableWrapper&) = delete;
Out call(In... in) const final { return m_callable(forward<In>(in)...); } Out call(In... in) const final override { return m_callable(forward<In>(in)...); }
private: private:
CallableType m_callable; CallableType m_callable;

View file

@ -23,6 +23,8 @@
#define COOL_GLOBALS #define COOL_GLOBALS
#define MAX_PROCESS_GIDS 32 #define MAX_PROCESS_GIDS 32
static const dword scheduler_time_slice = 5; // *10 = 50ms
#ifdef COOL_GLOBALS #ifdef COOL_GLOBALS
struct CoolGlobals { struct CoolGlobals {
dword current_pid; dword current_pid;
@ -763,7 +765,7 @@ void Process::send_signal(int signal, Process* sender)
ASSERT(signal < 32); ASSERT(signal < 32);
// FIXME: Handle send_signal to self. // FIXME: Handle send_signal to self.
ASSERT(this != current); ASSERT(this != sender);
auto& action = m_signal_action_data[signal]; auto& action = m_signal_action_data[signal];
// FIXME: Implement SA_SIGINFO signal handlers. // FIXME: Implement SA_SIGINFO signal handlers.
@ -813,7 +815,7 @@ void Process::send_signal(int signal, Process* sender)
dbgprintf("signal: %s(%u) sent %d to %s(%u)\n", sender->name().characters(), sender->pid(), signal, name().characters(), pid()); dbgprintf("signal: %s(%u) sent %d to %s(%u)\n", sender->name().characters(), sender->pid(), signal, name().characters(), pid());
if (sender == this) { if (current == this) {
sched_yield(); sched_yield();
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();
} }
@ -972,7 +974,7 @@ bool scheduleNewProcess()
static bool contextSwitch(Process* t) static bool contextSwitch(Process* t)
{ {
t->setTicksLeft(5); t->setTicksLeft(scheduler_time_slice);
t->didSchedule(); t->didSchedule();
if (current == t) if (current == t)

View file

@ -16,7 +16,7 @@ public:
pid_t pgid() const { return m_pgid; } pid_t pgid() const { return m_pgid; }
protected: protected:
virtual bool isTTY() const final { return true; } virtual bool isTTY() const final override { return true; }
TTY(unsigned major, unsigned minor); TTY(unsigned major, unsigned minor);
void emit(byte); void emit(byte);