summaryrefslogtreecommitdiff
path: root/docs/dynsections.js
diff options
context:
space:
mode:
authorErnesto Castellotti <erny.castell@gmail.com>2019-07-04 00:21:15 +0200
committerGitHub <noreply@github.com>2019-07-04 00:21:15 +0200
commit8c2f52dee8da32e7bca418a8a3fc77260c247eb8 (patch)
treee5999df17d01d8dd754e153a6d7094c940d6c51b /docs/dynsections.js
parent875ecbd21e2c7dee703fb6c0a959666ad1e20906 (diff)
Suppressed the new GCC 9 -Wmissing-attributes warnings
With the new release of the GCC 9 compiler the operation of -Wmissing-attributes warnings has also been extended to aliases: this causes a warnings if the alias has less attributes than its target. This warnings does not actually indicate a problem in the mimalloc code and you could safely ignore it by adding "-Wno-missing-attributes" to the CFLAGS, however I was not going to use a "hack" to hide the warning when compiling alloc-override .c So this patch solves the problem simply by using an attribute (present only in GCC> = 9) that copies the attributes of another function, since this attribute is exclusive only for GCC 9 (or later) I had to use a simple precompiler instruction to add the "copy" attribute only with GCC 9.
Diffstat (limited to 'docs/dynsections.js')
0 files changed, 0 insertions, 0 deletions