]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
EventKqueue: Clang want realloc return to be typed 21550/head
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 20 Apr 2018 08:00:03 +0000 (10:00 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 20 Apr 2018 08:00:03 +0000 (10:00 +0200)
commitad6baee3f9f7d6e375b2f6fe36561820bd26250e
tree7cd159a2c75fd04a3ca17ec91b31e84bcb823ebb
parent8b3b7dbefa577bb3f4cf68e0476397cc7588c9f1
EventKqueue: Clang want realloc return to be typed

Otherwise Clang start complaining:
src/msg/async/EventKqueue.cc:202:18: error: assigning to 'struct SaveEvent *' from incompatible type 'void *'
    sav_events = realloc(sav_events, sizeof(struct SaveEvent)*newsize);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.`

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/msg/async/EventKqueue.cc