]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Makefile: add a DEVOPTS flag to get pedantic compilation
authorBeat Bolli <dev+git@drbeat.li>
Tue, 24 Jul 2018 19:26:43 +0000 (21:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Jul 2018 16:52:32 +0000 (09:52 -0700)
commit729b3925ed962565e0d6cc144a4235fdf9a6aa85
tree9c069b13f589756cbb1c59b0cd81b6a88eb9964a
parent2b647a05d7223beacba076e45b3920a8621d28e7
Makefile: add a DEVOPTS flag to get pedantic compilation

In the interest of code hygiene, make it easier to compile Git with the
flag -pedantic.

Pure pedantic compilation with GCC 7.3 results in one warning per use of
the translation macro `N_`:

    warning: array initialized from parenthesized string constant [-Wpedantic]

Therefore also disable the parenthesising of i18n strings with
-DUSE_PARENS_AROUND_GETTEXT_N=0.

Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
config.mak.dev