<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>The style in existing code displays both variants and the coding standards document isn't clear on the matter that I could find other than giving a demonstration of voiding an unused function argument that does have the space. Other commentary about spaces and parens deals with conditionals.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 4, 2024 at 5:04 PM Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Don't we put a space after the (void)?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 4, 2024 at 12:55 PM Kinsey Moore <<a href="mailto:kinsey.moore@oarcorp.com" target="_blank">kinsey.moore@oarcorp.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">An error is already being reported. Checking the return value of this<br>
function is not useful.<br>
---<br>
 cpukit/libfs/src/dosfs/msdos_file.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c<br>
index d142968337..6728a960aa 100644<br>
--- a/cpukit/libfs/src/dosfs/msdos_file.c<br>
+++ b/cpukit/libfs/src/dosfs/msdos_file.c<br>
@@ -179,7 +179,7 @@ msdos_file_ftruncate(rtems_libio_t *iop, off_t length)<br>
                              length,<br>
                              &new_length);<br>
         if (rc == RC_OK && length != new_length) {<br>
-            fat_file_truncate(&fs_info->fat, fat_fd, old_length);<br>
+            (void)fat_file_truncate(&fs_info->fat, fat_fd, old_length);<br>
             errno = ENOSPC;<br>
             rc = -1;<br>
         }<br>
-- <br>
2.39.2<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>