aboutsummaryrefslogtreecommitdiff
path: root/src/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-28 15:31:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-28 15:31:53 -0400
commitca76fb335ae7b3f820beeeed5667950e7489711e (patch)
treee0ef48cce92aeeb92241ef98c65bf3af84c05ca4 /src/tomo.c
parent4de0fee8f694503b453e04084caaab55f8670b6c (diff)
Add compiler guards for GCC directives
Diffstat (limited to 'src/tomo.c')
-rw-r--r--src/tomo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tomo.c b/src/tomo.c
index e7bc3420..21ebed2f 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -82,8 +82,10 @@ typedef struct {
bool h:1, c:1, o:1;
} staleness_t;
+#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstack-protector"
+#endif
int main(int argc, char *argv[])
{
// Get the file modification time of the compiler, so we
@@ -251,7 +253,9 @@ int main(int argc, char *argv[])
}
return 0;
}
+#ifdef __GNUC__
#pragma GCC diagnostic pop
+#endif
Text_t escape_lib_name(Text_t lib_name)
{