diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:31:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:31:53 -0400 |
| commit | ca76fb335ae7b3f820beeeed5667950e7489711e (patch) | |
| tree | e0ef48cce92aeeb92241ef98c65bf3af84c05ca4 /src/repl.c | |
| parent | 4de0fee8f694503b453e04084caaab55f8670b6c (diff) | |
Add compiler guards for GCC directives
Diffstat (limited to 'src/repl.c')
| -rw-r--r-- | src/repl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -332,8 +332,10 @@ void run(env_t *env, ast_t *ast) } } +#ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstack-protector" +#endif void eval(env_t *env, ast_t *ast, void *dest) { type_t *t = get_type(env, ast); @@ -542,6 +544,8 @@ void eval(env_t *env, ast_t *ast, void *dest) print_err("Eval not implemented for ", ast_to_str(ast)); } } +#ifdef __GNUC__ #pragma GCC diagnostic pop +#endif // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
