Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/test/string.c

    r06e0f37 r7268bf1  
    3535#pragma GCC diagnostic ignored "-Wstringop-truncation"
    3636#pragma GCC diagnostic ignored "-Wstringop-overflow"
     37#pragma GCC diagnostic ignored "-Wstringop-overread"
    3738#endif
    3839
     
    799800PCUT_TEST(strndup_nonempty_short)
    800801{
     802#pragma GCC diagnostic push
     803        // Intentionally checking it works with _longer_ size than actual
     804#if defined(__GNUC__) && (__GNUC__ >= 11)
     805#pragma GCC diagnostic ignored "-Wstringop-overread"
     806#endif
    801807        char *d = strndup("abc", 5);
     808#pragma GCC diagnostic pop
    802809        PCUT_ASSERT_NOT_NULL(d);
    803810        PCUT_ASSERT_TRUE(d[0] == 'a');
Note: See TracChangeset for help on using the changeset viewer.