Commit 23c4e60
committed
build: use "-std=gnu11" as compiler flags and depend on gcc's C11
So far, we didn't specify "-std" option, and it was ill defined which C
behavior we require.
Note that we already use __attribute__((__cleanup__(fcn))), so
effectively we require either gcc or clang. A standard C compiler won't
suffice. That is for good reasons, because features like the cleanup
attribute are IMO invaluable and we should not write "C" without it.
Also, it's 2024. It's basically impossilbe that you use gcc/clang with a
version that doesn't yet support (gcc's) C11 variant. So explicitly
require that via the "-std=gnu11" option. I don't think we currently
require newer C features, so this is sufficient for us and for now.1 parent 8961887 commit 23c4e60
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
394 | 398 | | |
395 | 399 | | |
396 | 400 | | |
| 401 | + | |
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
| |||
0 commit comments