From 9ecf9c624c5272cf8d576ec173283ebfe72fd373 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 Dec 2016 03:23:03 +0100 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-limits.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/cg-limits.c') diff --git a/src/cg-limits.c b/src/cg-limits.c index b3a7ed7..6a071c7 100644 --- a/src/cg-limits.c +++ b/src/cg-limits.c @@ -15,9 +15,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#define _DEFAULT_SOURCE -#define _BSD_SOURCE - #include "cg-base.h" #include @@ -41,7 +38,7 @@ const int64_t default_priority = -(((int64_t)1) << 62); /** * The default class for the program */ -char* const default_class = PKGNAME "::cg-limits::standard"; +char default_class[] = PKGNAME "::cg-limits::standard"; @@ -562,6 +559,7 @@ int handle_args(int argc, char* argv[], char* method, char* site, free(Cflag), Cflag = NULL; errno = saved_errno; return cleanup(-1); + (void) site; } -- cgit v1.2.3-70-g09d2