aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-08 17:17:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-08 17:17:15 -0400
commitaeed1992e94c5ab6a5104a06a921101fbe8f40ed (patch)
tree8ba6dc531acefa0eedd330224f16f750496e8dbe /tomo.c
parentcf9d5b1619b9e5e886d2754f167046ff77d36abf (diff)
Fix nearly every GCC warning and add __attribute__((pure/const)) where
appropriate
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tomo.c b/tomo.c
index ac3b828d..660b7aa7 100644
--- a/tomo.c
+++ b/tomo.c
@@ -34,6 +34,7 @@ static int compile_object_file(const char *filename, bool force_recompile);
static int compile_executable(env_t *base_env, const char *filename, CORD object_files);
static void build_file_dependency_graph(const char *filename, Table_t *to_compile, Table_t *to_link);
+#pragma GCC diagnostic ignored "-Wstack-protector"
int main(int argc, char *argv[])
{
mode_e mode = MODE_RUN;
@@ -349,9 +350,7 @@ void build_file_dependency_graph(const char *filename, Table_t *to_compile, Tabl
Table$str_set(to_link, lib, lib);
break;
}
- case USE_HEADER: {
- break;
- }
+ default: case USE_HEADER: break;
}
}
free(file_dir);