Skip to content

Commit

Permalink
fix gcc-11 compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Wiles <[email protected]>
  • Loading branch information
KeithWiles committed May 12, 2024
1 parent 09bd7c3 commit 13174b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/core/osal/vt100_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
#include "cne_tty.h" // for tty_is_color_on
#include "vt100_out.h" // for vt_rgb_code_t, vt_attrs, vt_rgb_name_t, vt_...

#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif

static struct vt_attrs _attrs[] = VT_ATTRS;

static vt_rgb_code_t _rgb_codes[] = RGB_COLOR_CODES;
Expand Down Expand Up @@ -165,3 +171,7 @@ vt_color_parse(char *buff, int len)

return b - buff; /* True size of the string or data in buffer */
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

0 comments on commit 13174b0

Please sign in to comment.