shadow-maint / shadow

Upstream shadow tree
Other
292 stars 228 forks source link

W #924

Closed alejandro-colomar closed 7 months ago

alejandro-colomar commented 7 months ago

@thesamesam

I've prepared it already, per your suggestion.

Link: https://github.com/shadow-maint/shadow/issues/922

alejandro-colomar commented 7 months ago

v2 changes:

$ git range-diff master gh/W W 
1:  baf1f916 = 1:  baf1f916 lib/must_be.h: is_same_typeof(): Rename macro
2:  fe5774b5 = 2:  fe5774b5 lib/must_be.h: is_same_type(): Add macro
3:  df8ee946 = 3:  df8ee946 lib/cast.h: const_cast(): Add macro for dropping 'const'
4:  6461c51e = 4:  6461c51e src/su.c: Use const_cast() to silence -Wincompatible-pointer-types-discards-qualifiers
5:  08825432 = 5:  08825432 src/useradd.c: get_defaults(): Use const temporary pointer to fix const correctness
6:  469fbd13 = 6:  469fbd13 src/usermod.c: grp_update(): Remove scope of variable, and fix const correctness
7:  31c5ed1c < -:  -------- autogen.sh: CFLAGS: Add some -Werror=... flags that will be default soon
8:  b3f22d1e < -:  -------- autogen.sh: CFLAGS: Use -Wno-unknown-attributes; Clang doesn't know [[gnu::access()]]
-:  -------- > 7:  f0f1d548 autogen.sh: CFLAGS: Add some -Werror=... flags that will be default soon
-:  -------- > 8:  a99b3a50 autogen.sh: CFLAGS: Use -Wno-unknown-attributes; Clang doesn't know [[gnu::access()]]