Permalink
Browse files

- sshttpd: Adding -ansi -pedantic for all compiled files

  • Loading branch information...
stealth committed Jan 31, 2014
1 parent d01d733 commit 082da40bd182aaf2cf2646ccb2c506656ebb69f5
Showing with 5 additions and 5 deletions.
  1. +4 −4 Makefile
  2. +1 −1 multicore.cc
View
@@ -1,6 +1,6 @@
# sshttp Makefile
CFLAGS=-c -O2 -Wall
CFLAGS=-c -O2 -Wall -ansi -pedantic
# On BSD systems you either use gmake or you delete
# the ifeq's and the Linux def part.
@@ -38,11 +38,11 @@ multicore.o: multicore.cc multicore.h
$(CXX) $(CFLAGS) multicore.cc
sshttp.o: sshttp.cc sshttp.h
$(CXX) $(CFLAGS) -ansi -pedantic $(SMTP_DOMAIN) $(SSH_BANNER) sshttp.cc
$(CXX) $(CFLAGS) $(SMTP_DOMAIN) $(SSH_BANNER) sshttp.cc
main.o: main.cc
$(CXX) $(CFLAGS) -ansi -pedantic main.cc
$(CXX) $(CFLAGS) main.cc
socket.o: socket.cc socket.h
$(CXX) $(CFLAGS) -ansi -pedantic socket.cc
$(CXX) $(CFLAGS) socket.cc
View
@@ -20,7 +20,7 @@ using namespace std;
int ncpus = 1;
string err = "";
#ifdef linux
#ifdef __linux__
#include <sched.h>
static int get_cores()

0 comments on commit 082da40

Please sign in to comment.