Changeset 0a520db in mainline for uspace/lib/c/generic


Ignore:
Timestamp:
2019-01-10T18:39:16Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a91b828
Parents:
f47c2dc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-01-10 18:38:24)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-01-10 18:39:16)
Message:

Change static_assert to its standard definition

Location:
uspace/lib/c/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/double_to_str.c

    rf47c2dc1 r0a520db  
    503503{
    504504        /* The whole computation assumes 64bit significand. */
    505         static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));
     505        static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t), "");
    506506
    507507        if (ieee_val.is_special) {
     
    754754{
    755755        /* The whole computation assumes 64bit significand. */
    756         static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));
     756        static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t), "");
    757757
    758758        if (ieee_val.is_special) {
  • uspace/lib/c/generic/ieee_double.c

    rf47c2dc1 r0a520db  
    4545        const int exponent_bias = 1075;
    4646
    47         static_assert(sizeof(val) == sizeof(uint64_t));
     47        static_assert(sizeof(val) == sizeof(uint64_t), "");
    4848
    4949        union {
  • uspace/lib/c/generic/time.c

    rf47c2dc1 r0a520db  
    7979clock_t clock(void)
    8080{
    81         static_assert(CLOCKS_PER_SEC == 1000000);
     81        static_assert(CLOCKS_PER_SEC == 1000000, "");
    8282
    8383        size_t count;
Note: See TracChangeset for help on using the changeset viewer.