summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-11-18 11:33:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-11-19 13:51:03 -0800
commit26a4fb56326667c244f2a73aaf8a76be906e9fb8 (patch)
tree170edcc8d2cc8e16b90e484b778247037256a88b /.github
parent0fc58f45345f9d33a896a284cba5420ed4f4b1bc (diff)
downloadsubsurface-26a4fb56326667c244f2a73aaf8a76be906e9fb8.tar.gz
Warnings: silence new gcc warnings in uemis-downloader.c
Since upgrading to gcc 8.2 it produces noisy warnings about potentially truncated strings. It doesn't recognize that filenr can never become >4000. So clamp it down explicitly. Do this by adding a function that does the assembly of the filename path. Adding unnecessary code to silence compiler warnings is dubious, but in this case it might be reasonable. Fix a second instance by increasing the stack-allocated buffer to 32 bytes. Hopefully nobody has more divespots than would fit in a 9-decimal digit number! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions