diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-04-15 02:19:10 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-04-15 02:19:10 +0200 |
| commit | 8c56bc6ebf71ff94694ac456447acc2dc8b0ed72 (patch) | |
| tree | 045fa0d267d935b0ff4a1845063253df1d62213e /core/salis.c | |
| parent | c46d17b235d57dcbb2bb5455822420dc50ffac75 (diff) | |
Fixes building bugs on certain configurations
Diffstat (limited to 'core/salis.c')
| -rw-r--r-- | core/salis.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/salis.c b/core/salis.c index 3949059..5bccc15 100644 --- a/core/salis.c +++ b/core/salis.c @@ -118,9 +118,9 @@ const char *arch_mnemonic(uint8_t inst); #if defined(DATA_PUSH_PATH) #if defined(COMMAND_NEW) -void arch_push_data_header(); +void arch_push_data_header(void); #endif -void arch_push_data_line(); +void arch_push_data_line(void); #endif // ---------------------------------------------------------------------------- @@ -662,7 +662,7 @@ void salis_save(const char *path) { #endif } -void salis_auto_save() { +void salis_auto_save(void) { #if defined(NDEBUG) snprintf( #else @@ -737,7 +737,7 @@ void salis_exec_sql(int blob_cnt, const void **blobs, const int *blob_sizes, con #if defined(DATA_PUSH_PATH) #if defined(COMMAND_NEW) -void salis_push_data_header() { +void salis_push_data_header(void) { assert(g_sim_data); g_info("Creating 'general' table in SQLite database"); @@ -788,7 +788,7 @@ void salis_push_data_header() { } #endif -void salis_push_data_line() { +void salis_push_data_line(void) { assert(g_sim_data); // Measure average membory block sizes @@ -920,7 +920,7 @@ void salis_push_data_line() { #endif #if defined(COMMAND_BENCH) || defined(COMMAND_NEW) -void salis_init() { +void salis_init(void) { assert(g_info); assert(g_warn); @@ -954,7 +954,7 @@ void salis_init() { #endif #if defined(COMMAND_LOAD) -void salis_load() { +void salis_load(void) { #if defined(COMPRESS) FILE *fx = fopen(SIM_PATH, "rb"); assert(fx); @@ -1037,7 +1037,7 @@ void salis_run_thread(uint64_t ns) { g_steps += ns; } -void salis_sync() { +void salis_sync(void) { uint8_t *iviv0 = g_cores[0].iviv; uint64_t *ivav0 = g_cores[0].ivav; @@ -1116,7 +1116,7 @@ void salis_validate_core(const struct Core *core) { assert(core->ivpt == g_steps % SYNC_INTERVAL); } -void salis_validate() { +void salis_validate(void) { assert(g_steps / SYNC_INTERVAL == g_syncs); for (int i = 0; i < CORES; ++i) { @@ -1134,7 +1134,7 @@ void salis_step(uint64_t ns) { #endif } -void salis_free() { +void salis_free(void) { #if defined(DATA_PUSH_PATH) assert(g_sim_data); sqlite3_close(g_sim_data); @@ -1180,7 +1180,7 @@ void log_impl(const char *format, ...) { va_end(args); } -int main() { +int main(void) { g_info = log_impl; g_warn = log_impl; |
