commit b5b82936c9a8231467ff4481626d3b710940fb03
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Tue Dec 14 13:53:05 2021 +0100
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Tue Dec 14 13:57:50 2021 +0100

    Reorder CFLAGS
    
    The important "-Os" and "-fPIC" flags come first, followed by the
    "optional" warning flags.
    The flag "-pedantic" is a bit confusing, as it simply is a warning-flag.
    The equivalent "-Wpedantic" indicates this better.
    
    Signed-off-by: Laslo Hunhold <[email protected]>

diff --git a/config.mk b/config.mk
index 969a0a2..0c62ee1 100644
--- a/config.mk
+++ b/config.mk
@@ -11,7 +11,7 @@ MANPREFIX = $(PREFIX)/share/man
 
 # flags
 CPPFLAGS = -D_DEFAULT_SOURCE
-CFLAGS   = -std=c99 -pedantic -Wall -Wextra -Os -fPIC
+CFLAGS   = -std=c99 -Os -fPIC -Wall -Wextra -Wpedantic
 LDFLAGS  = -s
 
 # tools

Reply via email to