You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/22 12:07:14 UTC

[GitHub] [incubator-nuttx] anchao commented on a diff in pull request #6891: drivers/rwbuffer: Fix compiler errors

anchao commented on code in PR #6891:
URL: https://github.com/apache/incubator-nuttx/pull/6891#discussion_r951357870


##########
drivers/misc/rwbuffer.c:
##########
@@ -76,13 +76,11 @@ static int rwb_semtake(FAR sem_t *sem)
 {
   return nxsem_wait_uninterruptible(sem);

Review Comment:
   Done



##########
drivers/misc/rwbuffer.c:
##########
@@ -106,13 +104,17 @@ static int rwb_forcetake(FAR sem_t *sem)
 
   return ret;
 }
-#endif
 
 /****************************************************************************
  * Name: rwb_semgive
  ****************************************************************************/
 
 #define rwb_semgive(s) nxsem_post(s)
+#else
+# define rwb_forcetake(s) OK

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org