Changeset 3ddc586 in mainline


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

Guard pragmas with compiler version checks

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/rtld/symbol.c

    r0989bc4 r3ddc586  
    147147        start->bfs_tag = true;
    148148#pragma GCC diagnostic push
     149#if defined(__GNUC__) && (__GNUC__ >= 12)
    149150#pragma GCC diagnostic ignored "-Wdangling-pointer"
     151#endif
    150152        list_append(&start->queue_link, &queue);
    151153#pragma GCC diagnostic pop
  • 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
  • uspace/srv/hid/display/test/window.c

    r0989bc4 r3ddc586  
    11121112        // as we are out-of-bounds
    11131113#pragma GCC diagnostic push
     1114#if defined(__GNUC__) && (__GNUC__ >= 10)
    11141115#pragma GCC diagnostic ignored "-Wenum-conversion"
     1116#endif
    11151117        rc = ds_window_set_cursor(wnd, dcurs_limit);
    11161118        PCUT_ASSERT_ERRNO_VAL(EINVAL, rc);
Note: See TracChangeset for help on using the changeset viewer.