can-utils: remove strict-aliasing compiler warning

GitHub user 'crossband' raised an issue regarding the strict-aliasing compiler
warning in his specific setup: https://github.com/linux-can/can-utils/issues/42

In fact memcpy() and memset() are a better solution than the former pointer
magics, so remove the issues and the compiler warning flag too.

Reported-by: crossband (https://github.com/crossband)
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2017-07-01 19:01:01 +02:00
parent 5109ca4f3c
commit 4c8fb05cb4
5 changed files with 24 additions and 21 deletions
+1 -2
View File
@@ -43,8 +43,7 @@ PREFIX ?= /usr/local
MAKEFLAGS = -k
CFLAGS = -O2 -Wall -Wno-parentheses \
-fno-strict-aliasing
CFLAGS = -O2 -Wall -Wno-parentheses
CPPFLAGS += -Iinclude \
-D_FILE_OFFSET_BITS=64 \