Re: [PATCH] cygdrop: fix return type of usageCore

2021-05-26 Thread Corinna Vinschen
On May 25 16:36, Jeremy Drake via Cygwin-patches wrote:
> Fixes a warning "no return statement in function returning non-void",
> and solves a crash running --help.

Patches not affecting the Cygwin repo but other package's repos
should really go to cygwin-apps, please.


Thanks,
Corinna


[PATCH] cygdrop: fix return type of usageCore

2021-05-25 Thread Jeremy Drake via Cygwin-patches
Fixes a warning "no return statement in function returning non-void",
and solves a crash running --help.From f4821db24d4e4feca16e4aea58843128e233ef4e Mon Sep 17 00:00:00 2001
From: Jeremy Drake 
Date: Tue, 25 May 2021 16:13:17 -0700
Subject: [PATCH] cygdrop: fix return type of usageCore

Fixes a warning "no return statement in function returning non-void",
and solves a crash running --help.
---
 src/cygdrop/cygdrop.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cygdrop/cygdrop.cc b/src/cygdrop/cygdrop.cc
index 35bcc19..dc403c9 100644
--- a/src/cygdrop/cygdrop.cc
+++ b/src/cygdrop/cygdrop.cc
@@ -39,7 +39,7 @@ static void help (FILE * f, const char *name);
 static void version (FILE * f, const char *name);
 static void license (FILE * f, const char *name);
 
-static int
+static void
 usageCore (FILE * f, const char * name)
 {
   fprintf (f,
-- 
2.31.1