Author: hartmannathan
Date: Wed Aug 24 23:13:53 2022
New Revision: 1903666

URL: http://svn.apache.org/viewvc?rev=1903666&view=rev
Log:
Silence a compiler warning

* subversion/libsvn_subr/gpg_agent.c
  (bye_gpg_agent): Silence GCC warning "ignoring return value of ‘write’,
   declared with attribute warn_unused_result [-Wunused-result]." The comment
   above that same call to ‘write’ documents that it is intentional to ignore
   that return value.

Modified:
    subversion/trunk/subversion/libsvn_subr/gpg_agent.c

Modified: subversion/trunk/subversion/libsvn_subr/gpg_agent.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/gpg_agent.c?rev=1903666&r1=1903665&r2=1903666&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/gpg_agent.c (original)
+++ subversion/trunk/subversion/libsvn_subr/gpg_agent.c Wed Aug 24 23:13:53 2022
@@ -224,7 +224,7 @@ bye_gpg_agent(int sd)
 {
   /* don't bother to check the result of the write, it either worked or it
    * didn't, but either way we're closing. */
-  write(sd, "BYE\n", 4);
+  (void)write(sd, "BYE\n", 4);
   close(sd);
 }
 


Reply via email to