aboutsummaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-01-06 09:53:26 +0100
committerTom de Vries <tdevries@suse.de>2025-01-06 09:53:26 +0100
commita189db13c4889548be4439314a956f2ab910166b (patch)
tree7a8d90779b2b292a217af92417d864c9c0d016a0 /missing
parentf832531609d01fc06068b60786bc55f5009bd759 (diff)
downloadgdb-a189db13c4889548be4439314a956f2ab910166b.zip
gdb-a189db13c4889548be4439314a956f2ab910166b.tar.gz
gdb-a189db13c4889548be4439314a956f2ab910166b.tar.bz2
[gdb/build] Use const_cast in fd_copy
Recent commit 6ab5d62ebc5 ("[gdb] Fix compilation error in event-top.c") did: ... fd_copy (fd_set *dst, const fd_set *src, int n) { FD_ZERO (dst); for (int i = 0; i < n; ++i) - if (FD_ISSET (i, src)) + if (FD_ISSET (i, (fd_set *)src)) ... but according to [1] only const_cast may be used to cast away constness. Fix this by using const_cast. Tested by rebuilding on x86_64-linux. [1] https://en.cppreference.com/w/cpp/language/const_cast
Diffstat (limited to 'missing')
0 files changed, 0 insertions, 0 deletions