Skip to content

Commit 4aefbbe

Browse files
thugheskartben
authored andcommitted
debug: gdbstub: Re-enable warning
The warning no longer seems to be needed. CI passes without it. Signed-off-by: Tom Hughes <[email protected]>
1 parent 55bfed7 commit 4aefbbe

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

subsys/debug/gdbstub/gdbstub.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ __weak const size_t gdb_mem_num_regions;
5555
* @return Pointer to the memory region description if found.
5656
* NULL if not found.
5757
*/
58-
#if defined(__GNUC__)
59-
#pragma GCC diagnostic push
60-
/* Required due to gdb_mem_region_array having a default size of zero. */
61-
#pragma GCC diagnostic ignored "-Warray-bounds"
62-
#endif
63-
6458
static inline const
6559
struct gdb_mem_region *find_memory_region(const uintptr_t addr, const size_t len)
6660
{
@@ -82,10 +76,6 @@ struct gdb_mem_region *find_memory_region(const uintptr_t addr, const size_t len
8276
return ret;
8377
}
8478

85-
#if defined(__GNUC__)
86-
#pragma GCC diagnostic pop
87-
#endif
88-
8979
bool gdb_mem_can_read(const uintptr_t addr, const size_t len, uint8_t *align)
9080
{
9181
bool ret = false;

0 commit comments

Comments
 (0)