Ignore:
File:
1 edited

Legend:

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

    r7268bf1 r06e0f37  
    3535#pragma GCC diagnostic ignored "-Wstringop-truncation"
    3636#pragma GCC diagnostic ignored "-Wstringop-overflow"
    37 #pragma GCC diagnostic ignored "-Wstringop-overread"
    3837#endif
    3938
     
    800799PCUT_TEST(strndup_nonempty_short)
    801800{
    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
    807801        char *d = strndup("abc", 5);
    808 #pragma GCC diagnostic pop
    809802        PCUT_ASSERT_NOT_NULL(d);
    810803        PCUT_ASSERT_TRUE(d[0] == 'a');
Note: See TracChangeset for help on using the changeset viewer.