acassis commented on code in PR #3362:
URL: https://github.com/apache/nuttx-apps/pull/3362#discussion_r2712999095
##########
netutils/bare/cbare_porting_for_nuttx.patch:
##########
@@ -0,0 +1,28 @@
+diff --git i/src/cbare.c w/src/cbare.c
+index 208639f..a3081fb 100644
+--- i/src/cbare.c
++++ w/src/cbare.c
+@@ -4,7 +4,9 @@
+ #include "cbare.h"
+ #include "utf8.h"
+
++#ifndef UNUSED
+ #define UNUSED(x) (void)(x)
++#endif
+
+ enum {
+ U8SZ = 1,
+diff --git i/test/baretest.c w/test/baretest.c
+index 1561f4c..9df740f 100644
+--- i/test/baretest.c
++++ w/test/baretest.c
+@@ -10,7 +10,9 @@
+ #include "alloc.h"
+ #include "die.h"
+
++#ifndef UNUSED
+ #define UNUSED(x) (void)(x)
++#endif
Review Comment:
Since this modification is really small and it will not impact the original
project, maybe you can consider submitting a PR to them, then we can remove
this .patch later ;-)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]