Ignore:
File:
1 edited

Legend:

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

    rdd7df1c rd1582b50  
    135135        modules_untag(start->rtld);
    136136
    137         /*
    138          * Insert root (the program) into the queue and tag it.
    139          *
    140          * We disable the dangling-pointer warning because the compiler incorrectly
    141          * assumes that we leak local address (queue) to a parent scope (to start
    142          * argument). However, we always empty the list so the pointer cannot
    143          * actually escape. Probably the compiler can never statically analyze that
    144          * correctly.
    145          */
     137        /* Insert root (the program) into the queue and tag it */
    146138        list_initialize(&queue);
    147139        start->bfs_tag = true;
    148 #pragma GCC diagnostic push
    149 #if defined(__GNUC__) && (__GNUC__ >= 12)
    150 #pragma GCC diagnostic ignored "-Wdangling-pointer"
    151 #endif
    152140        list_append(&start->queue_link, &queue);
    153 #pragma GCC diagnostic pop
    154141
    155142        /* If the symbol is found, it will be stored in 'sym' */
Note: See TracChangeset for help on using the changeset viewer.