diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-01 10:08:19 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-01 10:11:30 +0100 |
| commit | d100ea1d2f76c6acf30f0d9a68304599aa72c3e2 (patch) | |
| tree | a3cd1dbc37353f74f3e2c740322c348e7c895189 /config/git/pcsx-redux | |
| parent | 861f56375aee4291285e8c853896044ce04343cd (diff) | |
libreboot-utils: always use strict cc flags
otherwise, i will end up with a mess like the
one i recently fixed.
we always want to use correct C. the current
spec is set to c99, with -pedantic turned on.
flags now:
-Os -Wall -Wextra -std=c99 -pedantic -Werror
if you do: make hell, you get (uses clang):
-Os -Wall -Wextra -std=c99 -pedantic -Werror -Weverything
i initially loosened up the Makefile rules, so
that the code would be more "portable", but
every compiler worth caring about has these
flags, and turning them on is advisable,
especially pedantic and -std, because you want
to have some guarantee that the compiler is
generating correct code; if the standard is
left ambiguous, you could be introducing subtle
bugs when people compile it, because who knows
what spec the compiler is using?
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/git/pcsx-redux')
0 files changed, 0 insertions, 0 deletions
