Skip to content

Commit

Permalink
Add -fno-strict-aliasing to Makefile.
Browse files Browse the repository at this point in the history
C99 aliasing semantics are a mess.  For a start, they break 20 years of
socket programming by not allowing a cast from sockaddr to sockaddr_in.
They also break the hacks used to simulate flexible arrays in C86.
  • Loading branch information
jech committed Jan 12, 2011
1 parent baf1d08 commit f35f2e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Expand Up @@ -12,10 +12,7 @@ DISK_CACHE_ROOT = /var/cache/polipo
# To compile with GCC:

# CC = gcc
# CDEBUGFLAGS = -Os -g -Wall -std=gnu99
CDEBUGFLAGS = -Os -g -Wall
# CDEBUGFLAGS = -Os -Wall
# CDEBUGFLAGS = -g -Wall
CDEBUGFLAGS = -Os -g -Wall -fno-strict-aliasing

# To compile on a pure POSIX system:

Expand Down

0 comments on commit f35f2e4

Please sign in to comment.