qRestAPI: Fix unused warnings

See commontk/qRestAPI@5a81c92f91