diff mbox series

[uclibc-ng-devel,5/6] Fix warning due to relaxed function declaration prototype

Message ID 20200922121703.12838-6-ysionneau@kalray.eu
State Accepted
Headers show
Series Warning fixes | expand

Commit Message

Yann Sionneau Sept. 22, 2020, 12:17 p.m. UTC
Fixes this:

libintl/libintl.c:81:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 const char *_nl_expand_alias () { return NULL; }
             ^~~~~~~~~~~~~~~~

Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
---
 libintl/libintl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libintl/libintl.c b/libintl/libintl.c
index 0851fac1c..b100ef542 100644
--- a/libintl/libintl.c
+++ b/libintl/libintl.c
@@ -78,5 +78,5 @@  char *bind_textdomain_codeset(const char *domainname, const char *codeset)
 }
 
 /* trick configure tests checking for gnu libintl, as in the copy included in gdb */
-const char *_nl_expand_alias () { return NULL; }
+const char *_nl_expand_alias (void) { return NULL; }
 int _nl_msg_cat_cntr = 0;