Skip to content

Commit e9dba42

Browse files
committed
Fix some build warnings and DEBUG_STARTUP
1 parent 4b14861 commit e9dba42

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/core/compiler.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void transfer_StartupInfo_to_my_thread() {
260260

261261
void register_startup_function(const StartUp& one_startup) {
262262
#ifdef DEBUG_STARTUP
263-
printf("%s:%d In register_startup_function type: %d at %p\n", __FILE__, __LINE__, startup._Type, startup._Function);
263+
printf("%s:%d In register_startup_function type: %d at %p\n", __FILE__, __LINE__, one_startup._Type, one_startup._Function);
264264
#endif
265265
StartupInfo* startup = NULL;
266266
// if my_thread is defined - then use its startup info
@@ -289,7 +289,7 @@ void register_startup_function(const StartUp& one_startup) {
289289
/*! Return the number of startup_functions that are waiting to be run*/
290290
size_t startup_functions_are_waiting() {
291291
#ifdef DEBUG_STARTUP
292-
printf("%s:%d startup_functions_are_waiting returning %" PRu "\n", __FILE__, __LINE__, my_thread->_Startup._count);
292+
fmt::print("{}:{} startup_functions_are_waiting returning {}\n", __FILE__, __LINE__, my_thread->_Startup._count);
293293
#endif
294294
return my_thread->_Startup._count;
295295
};
@@ -314,7 +314,7 @@ core::T_O* startup_functions_invoke(T_O* literals) {
314314
#ifdef DEBUG_STARTUP
315315
printf("%s:%d In startup_functions_invoke - there are %" PRsize_t " startup functions\n", __FILE__, __LINE__, startup_count);
316316
for (size_t i = 0; i < startup_count; ++i) {
317-
Startup& startup = startup_functions[i];
317+
StartUp& startup = startup_functions[i];
318318
printf("%s:%d Startup fn[%" PRsize_t "] -> %p\n", __FILE__, __LINE__, startup._Position, startup._Function);
319319
}
320320
printf("%s:%d Starting to call the startup functions\n", __FILE__, __LINE__);
@@ -328,9 +328,6 @@ core::T_O* startup_functions_invoke(T_O* literals) {
328328
__FILE__, __LINE__, startup._Position);
329329
}
330330
previous = startup;
331-
#ifdef DEBUG_STARTUP
332-
printf("%s:%d About to invoke fn@%p\n", __FILE__, __LINE__, fn);
333-
#endif
334331
switch (startup._Type) {
335332
case StartUp::T_O_function:
336333
result = ((T_OStartUp)startup._Function)(literals); // invoke the startup function

src/koga/units.lisp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
(setf llvm-includedir
4242
(uiop:ensure-directory-pathname (run-program-capture (list llvm-config "--includedir")))))
4343
(append-cflags configuration (format nil "-I~a" (normalize-directory llvm-includedir)))
44+
(append-cflags configuration "-Wno-vla-extension")
4445
(append-ldflags configuration (run-program-capture (list llvm-config "--ldflags")))
4546
(append-ldlibs configuration (run-program-capture (list llvm-config "--system-libs")))
4647
(append-ldlibs configuration (run-program-capture (list llvm-config "--libs")))

0 commit comments

Comments
 (0)