No warnings
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m30s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m30s
This commit is contained in:
@@ -64,6 +64,8 @@ struct editor {
|
||||
static struct editor editor;
|
||||
|
||||
static bool prepare_lines_cb (void* ctx, const char* start, size_t len) {
|
||||
(void)ctx;
|
||||
|
||||
struct edit_line* line = malloc (sizeof (*line));
|
||||
|
||||
if (line == NULL)
|
||||
|
||||
@@ -169,7 +169,7 @@ void parse_and_execute (struct list_node_link* tokens) {
|
||||
parser.next = get_token (tokens);
|
||||
|
||||
while (parser.next != NULL) {
|
||||
volatile struct ast_node* root = parse_precedence (&parser, PREC_NONE);
|
||||
struct ast_node* root = parse_precedence (&parser, PREC_NONE);
|
||||
|
||||
if (root != NULL) {
|
||||
struct context context;
|
||||
|
||||
@@ -4,6 +4,7 @@ cflags += -nostdinc \
|
||||
-fno-builtin \
|
||||
-std=c11 \
|
||||
-pedantic \
|
||||
-pedantic-errors \
|
||||
-Wall \
|
||||
-Wextra
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ cflags += -nostdinc \
|
||||
-fno-builtin \
|
||||
-std=c11 \
|
||||
-pedantic \
|
||||
-pedantic-errors \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-mcmodel=kernel
|
||||
|
||||
@@ -94,7 +94,6 @@ char* strncat (char* dest, const char* src, size_t n) {
|
||||
}
|
||||
|
||||
void* memmove (void* dest, const void* src, unsigned int n) {
|
||||
unsigned char isCopyRequire = 0; // flag bit
|
||||
char* pcSource = (char*)src;
|
||||
char* pcDstn = (char*)dest;
|
||||
// return if pcDstn and pcSource is NULL
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
static struct rb_node_link* proc_tree = NULL;
|
||||
static spin_lock_t proc_tree_lock = SPIN_LOCK_INIT;
|
||||
|
||||
static atomic_int sched_cycles = 0;
|
||||
|
||||
static struct id_alloc pid_alloc;
|
||||
|
||||
int proc_alloc_pid (void) { return id_alloc (&pid_alloc); }
|
||||
@@ -237,8 +235,6 @@ static struct proc* proc_find_sched (struct cpu* cpu) {
|
||||
}
|
||||
|
||||
void proc_sched (void) {
|
||||
int s_cycles = atomic_fetch_add (&sched_cycles, 1);
|
||||
|
||||
struct proc* next = NULL;
|
||||
struct cpu* cpu = thiscpu;
|
||||
|
||||
@@ -297,7 +293,7 @@ void proc_wait_for (struct proc* proc, struct reschedule_ctx* rctx, struct proc*
|
||||
}
|
||||
|
||||
static void proc_irq_sched (void* arg, void* regs, struct reschedule_ctx* rctx) {
|
||||
(void)arg, (void)regs;
|
||||
(void)arg, (void)regs, (void)rctx;
|
||||
|
||||
#if defined(__x86_64__)
|
||||
struct saved_regs* sr = regs;
|
||||
|
||||
@@ -203,8 +203,6 @@ static void procgroup_delete (struct procgroup* procgroup, struct reschedule_ctx
|
||||
spin_unlock (&procgroup->lock);
|
||||
spin_unlock (&procgroup_tree_lock);
|
||||
|
||||
struct list_node_link* resource_delete_list = NULL;
|
||||
|
||||
/* delete resources */
|
||||
struct rb_node_link* rnode;
|
||||
rbtree_first (&procgroup->resource_tree, rnode);
|
||||
|
||||
@@ -120,7 +120,6 @@ int isblank (int c) { return (c == ' ' || c == '\t'); }
|
||||
|
||||
/* SOURCE: https://aticleworld.com/memmove-function-implementation-in-c/ */
|
||||
void* memmove (void* dest, const void* src, unsigned int n) {
|
||||
unsigned char isCopyRequire = 0; // flag bit
|
||||
char* pcSource = (char*)src;
|
||||
char* pcDstn = (char*)dest;
|
||||
// return if pcDstn and pcSource is NULL
|
||||
|
||||
Reference in New Issue
Block a user