No warnings
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m30s

This commit is contained in:
2026-03-07 17:41:22 +01:00
parent 5e616c1879
commit 55d9b1fcd5
8 changed files with 6 additions and 10 deletions

View File

@@ -64,6 +64,8 @@ struct editor {
static struct editor editor; static struct editor editor;
static bool prepare_lines_cb (void* ctx, const char* start, size_t len) { static bool prepare_lines_cb (void* ctx, const char* start, size_t len) {
(void)ctx;
struct edit_line* line = malloc (sizeof (*line)); struct edit_line* line = malloc (sizeof (*line));
if (line == NULL) if (line == NULL)

View File

@@ -169,7 +169,7 @@ void parse_and_execute (struct list_node_link* tokens) {
parser.next = get_token (tokens); parser.next = get_token (tokens);
while (parser.next != NULL) { 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) { if (root != NULL) {
struct context context; struct context context;

View File

@@ -4,6 +4,7 @@ cflags += -nostdinc \
-fno-builtin \ -fno-builtin \
-std=c11 \ -std=c11 \
-pedantic \ -pedantic \
-pedantic-errors \
-Wall \ -Wall \
-Wextra -Wextra

View File

@@ -4,6 +4,7 @@ cflags += -nostdinc \
-fno-builtin \ -fno-builtin \
-std=c11 \ -std=c11 \
-pedantic \ -pedantic \
-pedantic-errors \
-Wall \ -Wall \
-Wextra \ -Wextra \
-mcmodel=kernel -mcmodel=kernel

View File

@@ -94,7 +94,6 @@ char* strncat (char* dest, const char* src, size_t n) {
} }
void* memmove (void* dest, const void* src, unsigned int n) { void* memmove (void* dest, const void* src, unsigned int n) {
unsigned char isCopyRequire = 0; // flag bit
char* pcSource = (char*)src; char* pcSource = (char*)src;
char* pcDstn = (char*)dest; char* pcDstn = (char*)dest;
// return if pcDstn and pcSource is NULL // return if pcDstn and pcSource is NULL

View File

@@ -35,8 +35,6 @@
static struct rb_node_link* proc_tree = NULL; static struct rb_node_link* proc_tree = NULL;
static spin_lock_t proc_tree_lock = SPIN_LOCK_INIT; static spin_lock_t proc_tree_lock = SPIN_LOCK_INIT;
static atomic_int sched_cycles = 0;
static struct id_alloc pid_alloc; static struct id_alloc pid_alloc;
int proc_alloc_pid (void) { return 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) { void proc_sched (void) {
int s_cycles = atomic_fetch_add (&sched_cycles, 1);
struct proc* next = NULL; struct proc* next = NULL;
struct cpu* cpu = thiscpu; 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) { 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__) #if defined(__x86_64__)
struct saved_regs* sr = regs; struct saved_regs* sr = regs;

View File

@@ -203,8 +203,6 @@ static void procgroup_delete (struct procgroup* procgroup, struct reschedule_ctx
spin_unlock (&procgroup->lock); spin_unlock (&procgroup->lock);
spin_unlock (&procgroup_tree_lock); spin_unlock (&procgroup_tree_lock);
struct list_node_link* resource_delete_list = NULL;
/* delete resources */ /* delete resources */
struct rb_node_link* rnode; struct rb_node_link* rnode;
rbtree_first (&procgroup->resource_tree, rnode); rbtree_first (&procgroup->resource_tree, rnode);

View File

@@ -120,7 +120,6 @@ int isblank (int c) { return (c == ' ' || c == '\t'); }
/* SOURCE: https://aticleworld.com/memmove-function-implementation-in-c/ */ /* SOURCE: https://aticleworld.com/memmove-function-implementation-in-c/ */
void* memmove (void* dest, const void* src, unsigned int n) { void* memmove (void* dest, const void* src, unsigned int n) {
unsigned char isCopyRequire = 0; // flag bit
char* pcSource = (char*)src; char* pcSource = (char*)src;
char* pcDstn = (char*)dest; char* pcDstn = (char*)dest;
// return if pcDstn and pcSource is NULL // return if pcDstn and pcSource is NULL