Changeset 3ddc586 in mainline for uspace/lib/c/test/string.c


Ignore:
Timestamp:
2023-08-04T09:19:45Z (18 months ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
ticket/834-toolchain-update
Children:
4dbcdf3
Parents:
0989bc4
Message:

Guard pragmas with compiler version checks

File:
1 edited

Legend:

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

    r0989bc4 r3ddc586  
    801801#pragma GCC diagnostic push
    802802        // Intentionally checking it works with _longer_ size than actual
     803#if defined(__GNUC__) && (__GNUC__ >= 11)
    803804#pragma GCC diagnostic ignored "-Wstringop-overread"
     805#endif
    804806        char *d = strndup("abc", 5);
    805807#pragma GCC diagnostic pop
Note: See TracChangeset for help on using the changeset viewer.