Commit 45e25410 authored by Josh Kunz's avatar Josh Kunz

Fix most compiler warnings

There's still an expression is always true warning, but since it's from
a #define, I figure it's best to just try and disable that warning at
some point.
parent 1ecccba1
......@@ -59,6 +59,11 @@ struct cdt_root_node {
enum allocation_state state;
};
/* The init and finish routines are defined in their own compoents. The
* implementations differ between the kernel and userspace. */
void __cptr_init(void);
void __cptr_fini(void);
/**
* Generic mutex wrappers. Defined by platform-specific code.
*/
......
......@@ -16,6 +16,7 @@
#include "list.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
#ifdef __APPLE__
#include "compat_internal/osx_user.h"
......@@ -116,7 +117,7 @@ static inline void __cap_atomic_spin_lock(void *addr)
pthread_spin_lock(__addr_to_spinlock(addr));
}
static inline __cap_atomic_spin_unlock(void *addr)
static inline void __cap_atomic_spin_unlock(void *addr)
{
pthread_spin_unlock(__addr_to_spinlock(addr));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment