@@ -141,7 +141,7 @@ int PubSubThread::Publish(const std::string& channel, const std::string &msg) {
141
141
channel_ = channel;
142
142
message_ = msg;
143
143
// Send signal to ThreadMain()
144
- write (msg_pfd_[1 ], " " , 1 );
144
+ ( void ) write (msg_pfd_[1 ], " " , 1 );
145
145
receiver_mutex_.Lock ();
146
146
while (receivers_ == -1 ) {
147
147
receiver_rsignal_.Wait ();
@@ -384,7 +384,7 @@ void *PubSubThread::ThreadMain() {
384
384
pfe = (pink_epoll_->firedevent ()) + i;
385
385
if (pfe->fd == pink_epoll_->notify_receive_fd ()) { // New connection comming
386
386
if (pfe->mask & PinkEpoll::kRead ) {
387
- read (pink_epoll_->notify_receive_fd (), triger, 1 );
387
+ ( void ) read (pink_epoll_->notify_receive_fd (), triger, 1 );
388
388
{
389
389
PinkItem ti = pink_epoll_->notify_queue_pop ();
390
390
if (ti.notify_type () == kNotiClose ) {
@@ -404,7 +404,7 @@ void *PubSubThread::ThreadMain() {
404
404
}
405
405
if (pfe->fd == msg_pfd_[0 ]) { // Publish message
406
406
if (pfe->mask & PinkEpoll::kRead ) {
407
- read (msg_pfd_[0 ], triger, 1 );
407
+ ( void ) read (msg_pfd_[0 ], triger, 1 );
408
408
std::string channel, msg;
409
409
int32_t receivers = 0 ;
410
410
channel = channel_;
0 commit comments