Forced suppression of some compiler warnings in miosix kernel sources
This commit is contained in:
parent
37c9e0dbc3
commit
a0c721b30d
|
|
@ -325,6 +325,8 @@ Thread *Thread::create(void *(*startfunc)(void *), unsigned int stacksize,
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||||
Thread *Thread::create(void (*startfunc)(void *), unsigned int stacksize,
|
Thread *Thread::create(void (*startfunc)(void *), unsigned int stacksize,
|
||||||
Priority priority, void *argv, unsigned short options)
|
Priority priority, void *argv, unsigned short options)
|
||||||
{
|
{
|
||||||
|
|
@ -332,6 +334,7 @@ Thread *Thread::create(void (*startfunc)(void *), unsigned int stacksize,
|
||||||
return Thread::create(reinterpret_cast<void *(*)(void*)>(startfunc),
|
return Thread::create(reinterpret_cast<void *(*)(void*)>(startfunc),
|
||||||
stacksize,priority,argv,options);
|
stacksize,priority,argv,options);
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
void Thread::yield()
|
void Thread::yield()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,14 @@
|
||||||
#ifndef LOGGING_H
|
#ifndef LOGGING_H
|
||||||
#define LOGGING_H
|
#define LOGGING_H
|
||||||
|
|
||||||
|
#pragma GCC system_header
|
||||||
|
|
||||||
#include "config/miosix_settings.h"
|
#include "config/miosix_settings.h"
|
||||||
#include "filesystem/console/console_device.h"
|
#include "filesystem/console/console_device.h"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print boot logs. Contrary to (i)printf(), this can be disabled in
|
* Print boot logs. Contrary to (i)printf(), this can be disabled in
|
||||||
* miosix_settings.h if boot logs are not wanted. Can only be called when the
|
* miosix_settings.h if boot logs are not wanted. Can only be called when the
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,9 @@ static void callConstructors(unsigned long *start, unsigned long *end)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
|
||||||
void *mainLoader(void *argv)
|
void *mainLoader(void *argv)
|
||||||
{
|
{
|
||||||
(void) argv;
|
(void) argv;
|
||||||
|
|
@ -113,6 +116,8 @@ void *mainLoader(void *argv)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
} //namespace miosix
|
} //namespace miosix
|
||||||
|
|
||||||
extern "C" void _init()
|
extern "C" void _init()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue