From d4b716667c1529beceed611e7c84779da0b6e020 Mon Sep 17 00:00:00 2001 From: abellenir Date: Sun, 27 Jul 2014 03:11:30 +0000 Subject: [PATCH] +Wall to compiler flags. rm unnecessary declaration --- Rakefile | 2 +- source/workdir.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index f3d8e46..7f93db2 100644 --- a/Rakefile +++ b/Rakefile @@ -24,7 +24,7 @@ Env = Rscons::Environment.new do |env| env.build_dir('modules','build/obj/modules') env['LIBS'] = ['ncurses'] env['CPPPATH'] += Dir['modules/data-structures/source/**/'] - #env['CFLAGS'] += ['-Wall'] + env['CFLAGS'] += ['-Wall'] env['CFLAGS'] += ['-Werror', '-pedantic', '--std=c99'] # Platform-specific Defines diff --git a/source/workdir.c b/source/workdir.c index 625acb6..19d2583 100644 --- a/source/workdir.c +++ b/source/workdir.c @@ -15,8 +15,6 @@ #include "workdir.h" #include "screen.h" -static void get_files(int windex); - bool is_dir(char* path) { struct stat s; return ((stat(path, &s) == 0) && (s.st_mode & S_IFDIR)); -- 2.54.0