From 3f6122b3f7e58109ff82bb217ff4db3bb310a98b Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 26 Mar 2013 14:45:53 +0100 Subject: [PATCH] include: remove extraneous const from uv_version() Fixes the following warning: include/uv.h:236:30: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] UV_EXTERN const unsigned int uv_version(void); --- include/uv.h | 2 +- src/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uv.h b/include/uv.h index 12173fba..553fc133 100644 --- a/include/uv.h +++ b/include/uv.h @@ -233,7 +233,7 @@ typedef enum { * each component, with the patch number stored in the 8 least significant * bits. E.g. for libuv 1.2.3 this would return 0x010203. */ -UV_EXTERN const unsigned int uv_version(void); +UV_EXTERN unsigned int uv_version(void); /* * Returns the libuv version number as a string. For non-release versions diff --git a/src/version.c b/src/version.c index 5de4ae8b..64712677 100644 --- a/src/version.c +++ b/src/version.c @@ -50,7 +50,7 @@ #endif -const unsigned int uv_version(void) { +unsigned int uv_version(void) { return UV_VERSION; }