[PATCH v1 00/12] gcc 12 warnings patches

2022-08-16 Thread Ryan Long
that put in. Thanks, Ryan Ryan Long (12): threads.h: Add pragmas to get rid of gcc 12 errors linkersets.h: Fix gcc 12 warning interr.h: Fix gcc 12 warning percpu.h: Add pragma for gcc 12 warning schedulerpriority.h: Fix gcc 12 warning test.h: Add pragma for gcc 12 warning cpu.h: Fix

[PATCH v1 02/12] linkersets.h: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
Changing the offset from 0 to 1 got rid of a warning stating that offset 0 is out of bounds. Updates #4662 --- cpukit/include/rtems/linkersets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/linkersets.h b/cpukit/include/rtems/linkersets.h index cdfcd54

[PATCH v1 03/12] interr.h: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
The warning that this fixes states that "ISO C restricts enumerator values to range of 'int'." Updates #4662 --- cpukit/include/rtems/score/interr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h index

[PATCH v1 04/12] percpu.h: Add pragma for gcc 12 warning

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/score/percpu.h | 8 1 file changed, 8 insertions(+) diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h index 24086cde86..fdd40e0a8b 100644 --- a/cpukit/include/rtems/score/percpu.h +++ b/cpukit/include/rtems/scor

[PATCH v1 06/12] test.h: Add pragma for gcc 12 warning

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/test.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h index c283be7860..e0823394d1 100644 --- a/cpukit/include/rtems/test.h +++ b/cpukit/include/rtems/test.h @@ -218,12 +218,19 @@ void T_ch

[PATCH v1 04/12] percpu.h: Add pragma to disable -Wpedantic

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/score/percpu.h | 8 1 file changed, 8 insertions(+) diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h index 24086cde86..fdd40e0a8b 100644 --- a/cpukit/include/rtems/score/percpu.h +++ b/cpukit/include/rtems/scor

[PATCH v1 05/12] schedulerpriority.h: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
Changed the size of the array to 1 to get rid of the warning. Updates #4662 --- cpukit/include/rtems/score/schedulerpriority.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/score/schedulerpriority.h b/cpukit/include/rtems/score/schedulerpriority.h index

[PATCH v1 07/12] cpu.h: Fix gcc 12 warnings

2022-08-16 Thread Ryan Long
Added two pragmas to address, and changed the value of AARCH64_EXCEPTION_MAKE_ENUM_64_BIT to INT_MAX because the old value was not in range of an int. Updates #4662 --- cpukit/score/cpu/aarch64/include/rtems/score/cpu.h | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-)

[PATCH v1 09/12] malloctest/init.c: Added pragmas to address gcc 12 warnings

2022-08-16 Thread Ryan Long
Fixed four warnings disabled were for "-Wuse-after-free" and one for a "-Wfree-nonheap-object." Updates #4662 --- testsuites/libtests/malloctest/init.c | 41 --- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/testsuites/libtests/malloctest/init.c b

[PATCH v1 08/12] dl09/dl-load.c: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
Changed format of size_t variable being printed. Updates #4662 --- testsuites/libtests/dl09/dl-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/libtests/dl09/dl-load.c b/testsuites/libtests/dl09/dl-load.c index 1de7c8fa29..ce9708c3a3 100644 --- a/testsuites/l

[PATCH v1 10/12] ttest01/test-checks.c: Initialize variables

2022-08-16 Thread Ryan Long
These uninitialized variables were causing warnings to be generated. Updates #4662 --- testsuites/libtests/ttest01/test-checks.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testsuites/libtests/ttest01/test-checks.c b/testsuites/libtests/ttest01/test-checks.c in

[PATCH v1 11/12] psxclock/init.c: Change print format for warning

2022-08-16 Thread Ryan Long
Updates #4662 --- testsuites/psxtests/psxclock/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/psxtests/psxclock/init.c b/testsuites/psxtests/psxclock/init.c index 743cfa6d78..eb2f1d130c 100644 --- a/testsuites/psxtests/psxclock/init.c +++ b/testsuites/psxtes

[PATCH v1 12/12] psxkey07/init.c: Add pragma for gcc 12 warning

2022-08-16 Thread Ryan Long
Updates #4662 --- testsuites/psxtests/psxkey07/init.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/testsuites/psxtests/psxkey07/init.c b/testsuites/psxtests/psxkey07/init.c index 593df739db..15387264ba 100644 --- a/testsuites/psxtests/psxkey07/init.c +++ b/tests

Re: [PATCH v1 09/12] malloctest/init.c: Added pragmas to address gcc 12 warnings

2022-08-18 Thread Ryan Long
On 8/16/2022 10:55 PM, Chris Johns wrote: On 17/8/2022 12:16 pm, Joel Sherrill wrote: On Tue, Aug 16, 2022, 6:07 PM Chris Johns mailto:chr...@rtems.org>> wrote: On 17/8/2022 6:11 am, Ryan Long wrote: > Fixed four warnings disabled were for "-Wuse-after-free&

<    2   3   4   5   6   7