Make it compile

It's hacky, but it works
This commit is contained in:
David Venhoff 2025-08-11 12:28:58 +02:00
parent cfcea9ee67
commit 756f45145b
2 changed files with 4 additions and 1 deletions

View File

@ -4,5 +4,5 @@ cp /lib/modules/`uname -r`/build/scripts/module.lds scripts/ &&
cp /lib/modules/`uname -r`/build/Module.symvers . && cp /lib/modules/`uname -r`/build/Module.symvers . &&
cp /lib/modules/`uname -r`/build/include/config/kernel.release include/config/kernel.release && cp /lib/modules/`uname -r`/build/include/config/kernel.release include/config/kernel.release &&
cp /lib/modules/`uname -r`/build/include/generated/utsrelease.h include/generated/utsrelease.h && cp /lib/modules/`uname -r`/build/include/generated/utsrelease.h include/generated/utsrelease.h &&
make M=arch/x86/kvm/ -j && make M=arch/x86/kvm/ -j KBUILD_MODPOST_WARN=1 &&
echo "[!] kvm-nyx successfully compiled" echo "[!] kvm-nyx successfully compiled"

View File

@ -47,6 +47,8 @@ static NORETURN inline void die(const char *err, ...)
} \ } \
} while(0) } while(0)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuse-after-free"
static inline void *xrealloc(void *ptr, size_t size) static inline void *xrealloc(void *ptr, size_t size)
{ {
void *ret = realloc(ptr, size); void *ret = realloc(ptr, size);
@ -61,6 +63,7 @@ static inline void *xrealloc(void *ptr, size_t size)
} }
return ret; return ret;
} }
#pragma GCC diagnostic pop
#define astrcatf(out, fmt, ...) \ #define astrcatf(out, fmt, ...) \
({ \ ({ \