0.4.9 + master: compile time warninngs
kloczek opened this issue · comments
Tomasz Kłoczko commented
gcc 12.0.1 from fedora rawhide.
On the beggining just summary stats:
[tkloczko@devel-g2v SPECS]$ rpmbuild -ba dateutils.spec 2>&1 | grep \\[-W | sed 's/.*\[//; s/\]//' | sort | uniq -c | sort -nr
127 -Wparentheses
114 -Wswitch
70 -Warray-parameter=
61 -Wcpp
6 -Wattributes
4 -Wmissing-braces
2 -Wyacc
2 -Wincompatible-pointer-types
1 -Wunused-variable
1 -Woverflow
1 -Wother
1 -Wdeprecated
1 -Waggressive-loop-optimizations
Tomasz Kłoczko commented
Here are extracted from stderr warning logs
In file included from /usr/include/unistd.h:25,
from yuck.c:53:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/unistd.h:25,
from yuck-scmver.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/unistd.h:25,
from yuck.c:53:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from yuck.c:1742:
yuck.yucc:256:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
256 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
yuck.yucc:159:12: note: previously declared as 'yuck_t *' {aka 'union yuck_u *'}
159 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
yuck.yucc:827:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
827 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
yuck.yucc:160:51: note: previously declared as 'yuck_t *' {aka 'union yuck_u *'}
160 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
yuck.yucc:887:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
887 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
yuck.yucc:163:57: note: previously declared as 'const yuck_t *' {aka 'const union yuck_u *'}
163 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
yuck.yucc:957:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
957 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
yuck.yucc:162:56: note: previously declared as 'const yuck_t *' {aka 'const union yuck_u *'}
162 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
yuck.yucc:1071:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
1071 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
yuck.yucc:164:59: note: previously declared as 'const yuck_t *' {aka 'const union yuck_u *'}
164 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from leaps.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from strops.c:45:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from strops.c:53:
strops.h: In function 'ui99topstr':
strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui999topstr':
strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui9999topstr':
strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from strops.c:45:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from strops.c:53:
strops.h: In function 'ui99topstr':
strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui999topstr':
strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui9999topstr':
strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from leaps.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from date-core.h:41,
from token.c:47:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from dt-core.h:41,
from dt-core-tz-glue.h:41,
from dt-core-tz-glue.c:45:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
dt-core-tz-glue.c: In function 'dtz_forgetz':
dt-core-tz-glue.c:78:33: warning: missing braces around initializer [-Wmissing-braces]
78 | d = dt_dtadd(d, (struct dt_dtdur_s){DT_DURS, .dv = zdiff});
| ^
| {{ }} }}}
dt-core-tz-glue.c: In function 'dtz_enrichz':
dt-core-tz-glue.c:120:33: warning: missing braces around initializer [-Wmissing-braces]
120 | d = dt_dtadd(d, (struct dt_dtdur_s){DT_DURS, .dv = zdiff});
| ^
| {{ }} }}}
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from date-core.h:41,
from token.c:47:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/unistd.h:25,
from ltrcc.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from ltrcc.c:405:
ltrcc.yucc:131:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
131 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
ltrcc.yucc:44:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
44 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
ltrcc.yucc:334:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
334 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
ltrcc.yucc:45:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
45 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
ltrcc.yucc:354:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
354 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
ltrcc.yucc:48:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
48 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
ltrcc.yucc:373:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
373 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
ltrcc.yucc:47:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
47 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
ltrcc.yucc:406:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
406 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
ltrcc.yucc:49:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
49 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from time-core.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from time-core.c:71:
strops.h: In function 'ui99topstr':
strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui999topstr':
strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui9999topstr':
strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/unistd.h:25,
from dt-locale.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from tzraw.c:51:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/unistd.h:25,
from tzmap.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from time-core.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from time-core.c:71:
strops.h: In function 'ui99topstr':
strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui999topstr':
strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui9999topstr':
strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/unistd.h:25,
from dt-locale.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/unistd.h:25,
from tzmap.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from tzmap.c:629:
tzmap.yucc:188:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
188 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
tzmap.yucc:95:12: note: previously declared as 'yuck_t *' {aka 'union yuck_u *'}
95 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
tzmap.yucc:570:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
570 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
tzmap.yucc:96:51: note: previously declared as 'yuck_t *' {aka 'union yuck_u *'}
96 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
tzmap.yucc:598:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
598 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
tzmap.yucc:99:57: note: previously declared as 'const yuck_t *' {aka 'const union yuck_u *'}
99 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
tzmap.yucc:639:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
639 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
tzmap.yucc:98:56: note: previously declared as 'const yuck_t *' {aka 'const union yuck_u *'}
98 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
tzmap.yucc:706:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const union yuck_u[1]'} with mismatched bound [-Warray-parameter=]
706 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
tzmap.yucc:100:59: note: previously declared as 'const yuck_t *' {aka 'const union yuck_u *'}
100 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from tzraw.c:51:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from dt-core.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dt-core.c:54:
strops.h: In function 'ui99topstr':
strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui999topstr':
strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui9999topstr':
strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
dt-core.c: In function '__sexy_add':
dt-core.c:287:9: warning: case value '0' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
287 | case DT_DURUNK:
| ^~~~
dt-core.c:283:9: warning: case value '6' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
283 | case DT_DURD:
| ^~~~
dt-core.c:284:9: warning: case value '7' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
284 | case DT_DURBD:
| ^~~~
In file included from dt-core.c:307:
dt-core-strpf.c: In function '__fixup_zdiff':
dt-core-strpf.c:137:27: warning: missing braces around initializer [-Wmissing-braces]
137 | dt = dt_dtadd(dt, (struct dt_dtdur_s){DT_DURS, .dv = -zdiff});
| ^
| {{ }} }}}
dt-core.c: In function 'leaps_before':
dt-core.c:519:9: warning: case value '1' not in enumerated type 'dt_dttyp_t' [-Wswitch]
519 | case DT_YMD:
| ^~~~
dt-core.c:523:9: warning: case value '2' not in enumerated type 'dt_dttyp_t' [-Wswitch]
523 | case DT_YMCW:
| ^~~~
dt-core.c:527:9: warning: case value '6' not in enumerated type 'dt_dttyp_t' [-Wswitch]
527 | case DT_DAISY:
| ^~~~
dt-core.c: In function 'dt_strfdt':
dt-core.c:807:17: warning: case value '1' not in enumerated type 'dt_dttyp_t' [-Wswitch]
807 | case DT_YMD:
| ^~~~
dt-core.c:810:17: warning: case value '2' not in enumerated type 'dt_dttyp_t' [-Wswitch]
810 | case DT_YMCW:
| ^~~~
dt-core.c:830:17: warning: case value '3' not in enumerated type 'dt_dttyp_t' [-Wswitch]
830 | case DT_BIZDA:
| ^~~~
dt-core.c:813:17: warning: case value '4' not in enumerated type 'dt_dttyp_t' [-Wswitch]
813 | case DT_YWD:
| ^~~~
dt-core.c:816:17: warning: case value '5' not in enumerated type 'dt_dttyp_t' [-Wswitch]
816 | case DT_YD:
| ^~~~
dt-core.c:819:17: warning: case value '6' not in enumerated type 'dt_dttyp_t' [-Wswitch]
819 | case DT_DAISY:
| ^~~~
dt-core.c:823:17: warning: case value '8' not in enumerated type 'dt_dttyp_t' [-Wswitch]
823 | case DT_JDN:
| ^~~~
dt-core.c:824:17: warning: case value '9' not in enumerated type 'dt_dttyp_t' [-Wswitch]
824 | case DT_LDN:
| ^~~~
dt-core.c:825:17: warning: case value '10' not in enumerated type 'dt_dttyp_t' [-Wswitch]
825 | case DT_MDN:
| ^~~~
dt-core.c:896:9: warning: case value '1' not in enumerated type 'dt_dttyp_t' [-Wswitch]
896 | case DT_YMD:
| ^~~~
dt-core.c:902:9: warning: case value '2' not in enumerated type 'dt_dttyp_t' [-Wswitch]
902 | case DT_YMCW:
| ^~~~
dt-core.c:930:9: warning: case value '3' not in enumerated type 'dt_dttyp_t' [-Wswitch]
930 | case DT_BIZDA:
| ^~~~
dt-core.c:908:9: warning: case value '4' not in enumerated type 'dt_dttyp_t' [-Wswitch]
908 | case DT_YWD:
| ^~~~
dt-core.c:911:9: warning: case value '5' not in enumerated type 'dt_dttyp_t' [-Wswitch]
911 | case DT_YD:
| ^~~~
dt-core.c:925:9: warning: case value '6' not in enumerated type 'dt_dttyp_t' [-Wswitch]
925 | case DT_DAISY:
| ^~~~
dt-core.c:916:9: warning: case value '8' not in enumerated type 'dt_dttyp_t' [-Wswitch]
916 | case DT_JDN:
| ^~~~
dt-core.c:919:9: warning: case value '9' not in enumerated type 'dt_dttyp_t' [-Wswitch]
919 | case DT_LDN:
| ^~~~
dt-core.c:922:9: warning: case value '10' not in enumerated type 'dt_dttyp_t' [-Wswitch]
922 | case DT_MDN:
| ^~~~
dt-core.c: In function 'dt_neg_dtdur':
dt-core.c:1254:9: warning: case value '6' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1254 | case DT_DURD:
| ^~~~
dt-core.c:1255:9: warning: case value '7' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1255 | case DT_DURBD:
| ^~~~
dt-core.c:1256:9: warning: case value '8' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1256 | case DT_DURWK:
| ^~~~
dt-core.c:1257:9: warning: case value '9' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1257 | case DT_DURMO:
| ^~~~
dt-core.c:1258:9: warning: case value '10' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1258 | case DT_DURQU:
| ^~~~
dt-core.c:1259:9: warning: case value '11' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1259 | case DT_DURYR:
| ^~~~
dt-core.c: In function 'dt_dtdur_neg_p':
dt-core.c:1281:9: warning: case value '6' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1281 | case DT_DURD:
| ^~~~
dt-core.c:1282:9: warning: case value '7' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1282 | case DT_DURBD:
| ^~~~
dt-core.c:1283:9: warning: case value '8' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1283 | case DT_DURWK:
| ^~~~
dt-core.c:1284:9: warning: case value '9' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1284 | case DT_DURMO:
| ^~~~
dt-core.c:1285:9: warning: case value '10' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1285 | case DT_DURQU:
| ^~~~
dt-core.c:1286:9: warning: case value '11' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
1286 | case DT_DURYR:
| ^~~~
dt-core.c: In function 'dt_milfup':
dt-core.c:1838:35: warning: missing braces around initializer [-Wmissing-braces]
1838 | dt = dt_dtadd(dt, (struct dt_dtdur_s){DT_DURS});
| ^
| {{ }}
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from date-core.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from date-core.c:54:
strops.h: In function 'ui99topstr':
strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui999topstr':
strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui9999topstr':
strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
date-core.c: At top level:
date-core.c:126:1: warning: ignoring attribute 'pure' because it conflicts with attribute 'const' [-Wattributes]
126 | {
| ^
In file included from date-core.c:664:
date-core-strpf.c: In function '__strpd_card':
date-core-strpf.c:199:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
199 | switch (s.abbr) {
| ^~~~~~
date-core-strpf.c: In function '__strpd_rom':
date-core-strpf.c:396:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
396 | switch (s.abbr) {
| ^~~~~~
date-core-strpf.c: In function '__strfd_card':
date-core-strpf.c:658:43: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
658 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U,
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
date-core-strpf.c:670:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
670 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U, padchar(s));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
date-core.c: In function 'dt_strfddur':
date-core.c:1228:17: warning: enumeration value 'DT_DURUNK' not handled in switch [-Wswitch]
1228 | switch (that.durtyp) {
| ^~~~~~
date-core.c:1228:17: warning: enumeration value 'DT_DURYMD' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURYMCW' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURBIZDA' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURYWD' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURYD' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_NDURTYP' not handled in switch [-Wswitch]
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from date-core.c:44:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from date-core.c:54:
strops.h: In function 'ui99topstr':
strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui999topstr':
strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strops.h: In function 'ui9999topstr':
strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
date-core.c: At top level:
date-core.c:126:1: warning: ignoring attribute 'pure' because it conflicts with attribute 'const' [-Wattributes]
126 | {
| ^
In file included from date-core.c:664:
date-core-strpf.c: In function '__strpd_card':
date-core-strpf.c:199:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
199 | switch (s.abbr) {
| ^~~~~~
date-core-strpf.c: In function '__strpd_rom':
date-core-strpf.c:396:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
396 | switch (s.abbr) {
| ^~~~~~
date-core-strpf.c: In function '__strfd_card':
date-core-strpf.c:658:43: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
658 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U,
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
date-core-strpf.c:670:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
670 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U, padchar(s));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
date-core.c: In function 'dt_strfddur':
date-core.c:1228:17: warning: enumeration value 'DT_DURUNK' not handled in switch [-Wswitch]
1228 | switch (that.durtyp) {
| ^~~~~~
date-core.c:1228:17: warning: enumeration value 'DT_DURYMD' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURYMCW' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURBIZDA' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURYWD' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_DURYD' not handled in switch [-Wswitch]
date-core.c:1228:17: warning: enumeration value 'DT_NDURTYP' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/src/dexpr-parser.y:38.1-12: warning: POSIX Yacc does not support %pure-parser [-Wyacc]
38 | %pure-parser
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/src/dexpr-parser.y:38.1-12: warning: deprecated directive: '%pure-parser', use '%define api.pure' [-Wdeprecated]
38 | %pure-parser
| ^~~~~~~~~~~~
| %define api.pure
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/src/dexpr-parser.y:90.1-7: warning: POSIX Yacc does not support %expect [-Wyacc]
90 | %expect 0
| ^~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/src/dexpr-parser.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother]
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from alist.c:41:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from dt-io-zone.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from prchunk.c:48:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dtest.c:41:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dtest.c:55:
dtest.yucc:146:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
146 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dtest.yucc:59:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
59 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dtest.yucc:403:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
403 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dtest.yucc:60:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
60 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dtest.yucc:442:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
442 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dtest.yucc:63:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
63 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dtest.yucc:461:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
461 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dtest.yucc:62:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
62 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dtest.yucc:531:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
531 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dtest.yucc:64:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
64 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from strptime.c:41:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from strptime.c:121:
strptime.yucc:136:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
136 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
strptime.yucc:49:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
49 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
strptime.yucc:379:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
379 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
strptime.yucc:50:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
50 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
strptime.yucc:408:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
408 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
strptime.yucc:53:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
53 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
strptime.yucc:428:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
428 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
strptime.yucc:52:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
52 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
strptime.yucc:480:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
480 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
strptime.yucc:54:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
54 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
strptime.c: In function 'main':
strptime.c:167:38: warning: passing argument 1 of 'proc_lines' from incompatible pointer type [-Wincompatible-pointer-types]
167 | rc |= proc_lines(argi->input_format_args, argi->input_format_nargs, outfmt, quietp);
| ~~~~^~~~~~~~~~~~~~~~~~~
| |
| char **
strptime.c:97:31: note: expected 'const char * const*' but argument is of type 'char **'
97 | proc_lines(const char *const *fmt, size_t nfmt, const char *ofmt, int quietp)
| ~~~~~~~~~~~~~~~~~~~^~~
strptime.c:170:60: warning: passing argument 2 of 'proc_line' from incompatible pointer type [-Wincompatible-pointer-types]
170 | rc |= proc_line(argi->args[i], argi->input_format_args, argi->input_format_nargs, outfmt, quietp);
| ~~~~^~~~~~~~~~~~~~~~~~~
| |
| char **
strptime.c:78:44: note: expected 'const char * const*' but argument is of type 'char **'
78 | const char *ln, const char *const *fmt, size_t nfmt,
| ~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dconv.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dconv.c:111:
dconv.yucc:141:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
141 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dconv.yucc:54:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
54 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dconv.yucc:404:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
404 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dconv.yucc:55:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
55 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dconv.yucc:438:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
438 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dconv.yucc:58:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
58 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dconv.yucc:465:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
465 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dconv.yucc:57:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
57 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dconv.yucc:536:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
536 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dconv.yucc:59:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
59 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from dt-io.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dt-io.c:23:
../lib/strops.h: In function 'ui99topstr':
../lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h: In function 'ui999topstr':
../lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h: In function 'ui9999topstr':
../lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/unistd.h:25,
from dsort.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dsort.c:242:
dsort.yucc:137:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
137 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dsort.yucc:50:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
50 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dsort.yucc:379:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
379 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dsort.yucc:51:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
51 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dsort.yucc:409:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
409 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dsort.yucc:54:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
54 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dsort.yucc:435:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
435 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dsort.yucc:53:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
53 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dsort.yucc:492:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
492 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dsort.yucc:55:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
55 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dadd.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dadd.c:222:
dadd.yucc:141:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
141 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dadd.yucc:54:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
54 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dadd.yucc:404:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
404 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dadd.yucc:55:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
55 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dadd.yucc:438:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
438 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dadd.yucc:58:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
58 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dadd.yucc:470:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
470 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dadd.yucc:57:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
57 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dadd.yucc:541:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
541 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dadd.yucc:59:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
59 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dzone.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dzone.c:216:
dzone.yucc:137:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
137 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dzone.yucc:50:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
50 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dzone.yucc:373:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
373 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dzone.yucc:51:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
51 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dzone.yucc:403:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
403 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dzone.yucc:54:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
54 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dzone.yucc:437:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
437 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dzone.yucc:53:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
53 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dzone.yucc:495:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
495 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dzone.yucc:55:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
55 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from ddiff.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from ddiff.c:648:
ddiff.yucc:139:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
139 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
ddiff.yucc:52:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
52 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
ddiff.yucc:393:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
393 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
ddiff.yucc:53:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
53 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
ddiff.yucc:425:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
425 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
ddiff.yucc:56:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
56 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
ddiff.yucc:460:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
460 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
ddiff.yucc:55:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
55 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
ddiff.yucc:528:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
528 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
ddiff.yucc:57:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
57 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from dseq.c:41:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dseq.c:449:
dseq.yucc:140:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
140 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dseq.yucc:53:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
53 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dseq.yucc:406:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
406 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dseq.yucc:54:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
54 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dseq.yucc:443:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
443 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dseq.yucc:57:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
57 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dseq.yucc:471:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
471 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dseq.yucc:56:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
56 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dseq.yucc:560:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
560 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dseq.yucc:58:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
58 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dround.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
dround.c: In function 'dround_ddur_cocl':
dround.c:292:17: warning: enumeration value 'DT_DUNK' not handled in switch [-Wswitch]
292 | switch (d.typ) {
| ^~~~~~
dround.c:292:17: warning: enumeration value 'DT_BIZDA' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_YWD' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_YD' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_DAISY' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_BIZSI' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_JDN' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_LDN' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_MDN' not handled in switch [-Wswitch]
dround.c:292:17: warning: enumeration value 'DT_NDTYP' not handled in switch [-Wswitch]
dround.c: In function 'dt_round':
dround.c:620:17: warning: case value '6' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
620 | case DT_DURD:
| ^~~~
dround.c:621:17: warning: case value '7' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
621 | case DT_DURBD:
| ^~~~
dround.c:622:17: warning: case value '9' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
622 | case DT_DURMO:
| ^~~~
dround.c:623:17: warning: case value '10' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
623 | case DT_DURQU:
| ^~~~
dround.c:624:17: warning: case value '11' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
624 | case DT_DURYR:
| ^~~~
In file included from dround.c:820:
dround.yucc: At top level:
dround.yucc:142:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
142 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dround.yucc:55:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
55 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dround.yucc:410:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
410 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dround.yucc:56:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
56 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dround.yucc:445:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
445 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dround.yucc:59:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
59 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dround.yucc:522:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
522 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dround.yucc:58:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
58 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dround.yucc:594:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
594 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dround.yucc:60:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
60 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
dround.c: In function 'main':
dround.c:898:33: warning: enumeration value 'DT_DURNANO' not handled in switch [-Wswitch]
898 | switch (LAST_DUR.durtyp) {
| ^~~~~~
dround.c:918:33: warning: case value '6' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
918 | case DT_DURD:
| ^~~~
dround.c:919:33: warning: case value '7' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
919 | case DT_DURBD:
| ^~~~
dround.c:925:33: warning: case value '9' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
925 | case DT_DURMO:
| ^~~~
dround.c:932:33: warning: case value '10' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
932 | case DT_DURQU:
| ^~~~
dround.c:939:33: warning: case value '11' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
939 | case DT_DURYR:
| ^~~~
dround.c:973:33: warning: case value '9' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
973 | case DT_DURMO:
| ^~~~
dround.c:980:33: warning: case value '10' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
980 | case DT_DURQU:
| ^~~~
dround.c:987:33: warning: case value '11' not in enumerated type 'dt_dtdurtyp_t' [-Wswitch]
987 | case DT_DURYR:
| ^~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dgrep.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from dexpr.c:8,
from dgrep.c:57:
../lib/strops.h: In function 'ui99topstr':
../lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h: In function 'ui999topstr':
../lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h: In function 'ui9999topstr':
../lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
../lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from dgrep.c:123:
dgrep.yucc: At top level:
dgrep.yucc:147:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
147 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
dgrep.yucc:60:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
60 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
dgrep.yucc:417:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
417 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
dgrep.yucc:61:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
61 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
dgrep.yucc:457:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
457 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dgrep.yucc:64:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
64 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
dgrep.yucc:497:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
497 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dgrep.yucc:63:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
63 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
dgrep.yucc:574:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
574 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
dgrep.yucc:65:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
65 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
1543 blocks
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from itostr-3.c:1:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from itostr-3.c:2:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/dt-core.h:41,
from struct-1.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from itostr-1.c:1:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from itostr-1.c:2:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from struct-7.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/dt-core.h:41,
from struct-3.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/dt-core.h:41,
from struct-4.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from struct-8.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/dt-core.h:41,
from struct-5.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from struct-9.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from enum-1.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from itostr-2.c:1:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from itostr-2.c:2:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from itostr-4.c:1:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from itostr-4.c:2:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from strtoi-1.c:1:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from strtoi-1.c:2:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/dt-core.h:41,
from struct-2.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from strtoi-bench.c:1:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from strtoi-bench.c:2:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
strtoi-bench.c: At top level:
strtoi-bench.c:7:20: warning: 'tst0' defined but not used [-Wunused-variable]
7 | static const char *tst0[] = {"8.4", "5a", "a1", "9.", "1+2", "", "\t", "#4"};
| ^~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from struct-6.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
struct-6.c: In function 'main':
struct-6.c:14:19: warning: overflow in conversion from 'long long int' to 'long int:48' changes value from '9007199254740991' to '-1' [-Woverflow]
14 | dt.sexy = 0x1fffffffffffffLL;
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dtcore-conv.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from time-core-add.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dtcore-strp.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from dtcore-add.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/unistd.h:25,
from clitosis.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
clitosis.c: In function 'find_opt':
clitosis.c:908:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
908 | (mp == bp + 2U || mp > bp + 2U && mp[-3] == '\n')) {
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from clitosis.c:1653:
clitosis.yucc: At top level:
clitosis.yucc:139:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
139 | static int yuck_parse(yuck_t tgt[static 1U], int argc, char *argv[])
| ~~~~~~~^~~~~~~~~~~~~~
clitosis.yucc:52:12: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
52 | yuck_parse(yuck_t*, int argc, char *argv[]);
| ^~~~~~~
clitosis.yucc:369:30: warning: argument 1 of type 'yuck_t[static 1]' {aka 'struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
369 | static void yuck_free(yuck_t tgt[static 1U])
| ~~~~~~~^~~~~~~~~~~~~~
clitosis.yucc:53:51: note: previously declared as 'yuck_t *' {aka 'struct yuck_s *'}
53 | static __attribute__((nonnull(1))) void yuck_free(yuck_t*);
| ^~~~~~~
clitosis.yucc:397:42: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
397 | static void yuck_auto_usage(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
clitosis.yucc:56:57: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
56 | static __attribute__((nonnull(1))) void yuck_auto_usage(const yuck_t*);
| ^~~~~~~~~~~~~
clitosis.yucc:416:41: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
416 | static void yuck_auto_help(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
clitosis.yucc:55:56: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
55 | static __attribute__((nonnull(1))) void yuck_auto_help(const yuck_t*);
| ^~~~~~~~~~~~~
clitosis.yucc:459:44: warning: argument 1 of type 'const yuck_t[static 1]' {aka 'const struct yuck_s[1]'} with mismatched bound [-Warray-parameter=]
459 | static void yuck_auto_version(const yuck_t src[static 1U])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
clitosis.yucc:57:59: note: previously declared as 'const yuck_t *' {aka 'const struct yuck_s *'}
57 | static __attribute__((nonnull(1))) void yuck_auto_version(const yuck_t*);
| ^~~~~~~~~~~~~
strtoi-bench.c: In function 'main':
strtoi-bench.c:16:19: warning: iteration 25565281 invokes undefined behavior [-Waggressive-loop-optimizations]
16 | s += strtoi_lim(tst1[0U], &x, 0, 90);
| ^
strtoi-bench.c:14:30: note: within this loop
14 | for (size_t i = 0; i < 100000000U; i++) {
| ^
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:40,
from basic_md_get_yday.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from basic_md_get_yday.c:9:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: At top level:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:126:1: warning: ignoring attribute 'pure' because it conflicts with attribute 'const' [-Wattributes]
126 | {
| ^
In file included from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:664:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:199:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
199 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_rom':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:396:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
396 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strfd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:658:43: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
658 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U,
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:670:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
670 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U, padchar(s));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: In function 'dt_strfddur':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURUNK' not handled in switch [-Wswitch]
1228 | switch (that.durtyp) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYMD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYMCW' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURBIZDA' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYWD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_NDURTYP' not handled in switch [-Wswitch]
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:40,
from basic_get_jan01_wday.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from basic_get_jan01_wday.c:9:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: At top level:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:126:1: warning: ignoring attribute 'pure' because it conflicts with attribute 'const' [-Wattributes]
126 | {
| ^
In file included from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:664:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:199:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
199 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_rom':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:396:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
396 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strfd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:658:43: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
658 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U,
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:670:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
670 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U, padchar(s));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: In function 'dt_strfddur':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURUNK' not handled in switch [-Wswitch]
1228 | switch (that.durtyp) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYMD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYMCW' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURBIZDA' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYWD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_NDURTYP' not handled in switch [-Wswitch]
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:40,
from basic_get_dom_wday.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from basic_get_dom_wday.c:9:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: At top level:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:126:1: warning: ignoring attribute 'pure' because it conflicts with attribute 'const' [-Wattributes]
126 | {
| ^
In file included from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:664:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:199:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
199 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_rom':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:396:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
396 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strfd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:658:43: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
658 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U,
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:670:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
670 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U, padchar(s));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: In function 'dt_strfddur':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURUNK' not handled in switch [-Wswitch]
1228 | switch (that.durtyp) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYMD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYMCW' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURBIZDA' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYWD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURYD' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_NDURTYP' not handled in switch [-Wswitch]
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-redhat-linux/12/include/stdint.h:9,
from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:40,
from basic_ymd_get_wday.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui99topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:144:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
144 | i += (d10 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:161:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
161 | i += (d100 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:164:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
164 | i += (d100 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h: In function 'ui9999topstr':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:181:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
181 | i += (d1000 > 0U || width > 3U && pad) && z > 3U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:184:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
184 | i += (d1000 > 0U || width > 2U && pad) && z > 2U;
| ~~~~~~~~~~~^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/strops.h:187:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
187 | i += (d1000 > 0U || width > 1U && pad) && z > 1U;
| ~~~~~~~~~~~^~~~~~
In file included from basic_ymd_get_wday.c:9:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: At top level:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:126:1: warning: ignoring attribute 'pure' because it conflicts with attribute 'const' [-Wattributes]
126 | {
| ^
In file included from /home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:664:
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:199:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
199 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strpd_rom':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:396:17: warning: enumeration value 'DT_SPMOD_ILL' not handled in switch [-Wswitch]
396 | switch (s.abbr) {
| ^~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c: In function '__strfd_card':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:658:43: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
658 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U,
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core-strpf.c:670:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
670 | 3 - (s.pad == DT_SPPAD_OMIT) << 1U, padchar(s));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c: In function 'dt_strfddur':
/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.9/lib/date-core.c:1228:17: warning: enumeration value 'DT_DURUNK' not handled in switch [-Wswitch]
1228 | switch (that.durtyp) {
| ^~~~~~
Tomasz Kłoczko commented
Just FTR .. small progress in 0.4.10 😃
114 -Wswitch
70 -Warray-parameter=
61 -Wcpp
6 -Wattributes
4 -Wmissing-braces
2 -Wyacc
2 -Wincompatible-pointer-types
1 -Wunused-variable
1 -Woverflow
1 -Wother
1 -Wdeprecated
1 -Waggressive-loop-optimizations
Tomasz Kłoczko commented
Looks like now with gcc 14.x Wincompatible-pointer-types
are turned into errors.
Sebastian Freundt commented
should be fixed in master