Changeset c1a7a65 in mainline


Ignore:
Timestamp:
2023-07-24T16:26:04Z (15 months ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
ticket/834-toolchain-update
Children:
474fd65
Parents:
417e1f6
git-author:
Vojtech Horky <vojtech.horky@…> (2023-07-24 16:21:37)
git-committer:
Vojtech Horky <vojtech.horky@…> (2023-07-24 16:26:04)
Message:

Silence compiler warning in test

File:
1 edited

Legend:

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

    r417e1f6 rc1a7a65  
    799799PCUT_TEST(strndup_nonempty_short)
    800800{
     801#pragma GCC diagnostic push
     802        // Intentionally checking it works with _longer_ size than actual
     803#pragma GCC diagnostic ignored "-Wstringop-overread"
    801804        char *d = strndup("abc", 5);
     805#pragma GCC diagnostic pop
    802806        PCUT_ASSERT_NOT_NULL(d);
    803807        PCUT_ASSERT_TRUE(d[0] == 'a');
Note: See TracChangeset for help on using the changeset viewer.