From 3deb7268fa2041849b7e69e01545f5df4157c5a0 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 30 Oct 2013 15:27:04 +0100 Subject: timeadd: fix build with older GCC --- Makefile | 3 +++ timeadd.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c5daf30..0e3123b 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ XCBV_LDFLAGS += $(shell pkg-config --libs xcb-image xpm) -lrt RGB_TXT := /usr/share/vim/vim73/rgb.txt +timeadd: timeadd.c + $(CC) -g -Wall -Werror -Wextra $(CFLAGS) -o $(OUTDIR)$@ $< -lrt + xcbviewfs: xcbviewfs.c colorlookup.c $(CC) $(XCBV_CFLAGS) -o $@ $< colorlookup.c $(XCBV_LDFLAGS) diff --git a/timeadd.c b/timeadd.c index d2f0159..e43c951 100644 --- a/timeadd.c +++ b/timeadd.c @@ -36,7 +36,7 @@ struct timespec timediff(struct timespec begin, struct timespec end) { int main(int argc, char **argv) { const char *out_format; char buf[4096]; - struct timespec tp[2] = { { 0 } }; + struct timespec tp[2] = { { 0, 0 } }; int tp_i = 0; int opt; bool diff = false; -- cgit v1.2.1