| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
There is no point in supporting two different build systems.
|
|
|
|
|
|
|
|
| |
* libpam/include/pam_cc_compat.h (DIAG_PUSH_IGNORE_FORMAT_NONLITERAL,
DIAG_POP_IGNORE_FORMAT_NONLITERAL): New macros.
* libpam/pam_handlers.c (_pam_open_config_file): Use them to exempt
usage of format string literals from a constant array.
* m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Wformat=2.
|
|
|
|
|
|
| |
* modules/pam_unix/pam_unix_passwd.c: Wrap checks for configure macros
into defined() operator.
* m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Wundef.
|
|
|
|
|
|
|
| |
The current codebase should comply with those.
* m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Winit-self,
-Wnull-dereference, and -Wunused.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Exported functions already have these attributes, add them to other functions.
This enables compilers to find format specifier mismatches, like:
foo_print("Hello %d", "world")
* m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Wmissing-format-attribute.
* conf/pam_conv1/Makefile.am (AM_CFLAGS): Add -I$(top_srcdir)/libpam/include.
* conf/pam_conv1/pam_conv_y.y: Include <security/_pam_types.h>.
(yyerror): Add printf format attribute.
* modules/pam_pwhistory/opasswd.c (helper_log_err): Likewise.
* modules/pam_rootok/pam_rootok.c (log_callback): Likewise.
* modules/pam_tally/pam_tally.c (tally_log): Likewise.
* modules/pam_tally2/pam_tally2.c (tally_log): Likewise.
* modules/pam_unix/passverify.c (helper_log_err): Likewise.
|
|
|
|
|
|
| |
This way -Wcast-align will be tested regardless of the target machine.
* m4/warn_lang_flags.m4: Add gl_WARN_ADD([-Wcast-align=strict]).
|
|
As the old machinery was not prepared for adding compiler options
conditionally when the compiler supports them, replace it with
a new machinery that implements this.
* m4/warnings.m4: New file.
* m4/warn_lang_flags.m4: Likewise.
* m4/.gitignore: Add exclusions for them.
* m4/japhar_grep_cflags.m4 (JAPHAR_GREP_CFLAGS): Remove.
* configure.ac: Call pam_WARN_LANG_FLAGS. Remove all uses
of JAPHAR_GREP_CFLAGS.
|