Skip to content

Commit 7b65871

Browse files
authored
Merge pull request #50 from rafaelcn/dev
Fix #42
2 parents d3dd156 + d289bfe commit 7b65871

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GCC=g++
2020
CLANG=clang
2121
LLVM_CONFIG=llvm-config
2222

23-
CFLAGS=-O3 -Wall -std=c++1y
23+
CFLAGS=-O3 -Wall -Wno-unknown-warning-option -std=c++1y
2424
CFLAGS-DEBUG=-O0 -Wall
2525
BIN=./bin
2626

tests/test_scripts.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ void appendExtToFile(char *dest, char *source, char *ext);
1616
void compareFiles(char *filename1, char *filename2);
1717
void execToFile(char *options, char *destFile);
1818

19-
int main()
20-
{
19+
int main(void) {
20+
#if !__unix__
21+
#error "This shouldn't work on any non unix platform. Please, make it portable."
22+
#endif
23+
2124
char *execProg = "brain";
2225

2326
DIR *d;

0 commit comments

Comments
 (0)