Skip to content

Commit

Permalink
Make C options consistent between imgcomp and view.cgi builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias-Wandel committed Jul 2, 2020
1 parent e3d49b1 commit 9b666e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion browse/makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CC=gcc -std=c99 -DVIEWCGI
CC=gcc -std=c99 -Wall -DVIEWCGI

LINKER=link
LINKCON = /nologo
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SRC=src
# with debug:
#CFLAGS:= $(CFLAGS) -O3 -Wall -g

CFLAGS:= $(CFLAGS) -std=c11 -O3 -Wall -D_POSIX_C_SOURCE
CFLAGS:= $(CFLAGS) -std=c99 -O3 -Wall
all: objdir imgcomp

objdir:
Expand Down
8 changes: 0 additions & 8 deletions src/identify_pi

This file was deleted.

3 changes: 3 additions & 0 deletions src/start_raspistill.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <errno.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <signal.h>

#include "imgcomp.h"
#include "jhead.h"
Expand All @@ -22,6 +24,7 @@ static int blink_led_pid = 0;
int relaunch_timeout = 6;
int give_up_timeout = 18;

int kill(pid_t pid, int sig);
//-----------------------------------------------------------------------------------
// Parse command line and launch.
//-----------------------------------------------------------------------------------
Expand Down

0 comments on commit 9b666e4

Please sign in to comment.