Compare commits

...

2 Commits

Author SHA1 Message Date
3bd678d48e case EOF is now checked only on x86 arches
This check causes problems on architectures where char is unsigned, thus
EOF which is a signed int has a value less of the minimum permitted by the type.
To be honest this check could just be avoided alltogether, maybe in the future.
2020-10-04 23:21:03 +02:00
04bfca1932 make respects system compiler setting 2020-10-04 23:13:11 +02:00
2 changed files with 3 additions and 1 deletions

2
hkd.c
View File

@ -753,7 +753,9 @@ void parse_config_file (void)
bb++; bb++;
// get state // get state
switch (*bb) { switch (*bb) {
#if defined(__X86_64__) || defined(__i386__)
case EOF: case EOF:
#endif
case '\0': case '\0':
// If it is the end of the last block exit // If it is the end of the last block exit
if (exit_state > 1) if (exit_state > 1)

View File

@ -1,4 +1,4 @@
CC = gcc CC ?= gcc
CFLAGS = -Wall -Werror -pedantic --std=c99 -O2 CFLAGS = -Wall -Werror -pedantic --std=c99 -O2
VERSION = 0.3 VERSION = 0.3
PREFIX = /usr/local PREFIX = /usr/local