summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2010-02-01 15:47:28 -0500
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2010-02-16 17:38:14 -0500
commit6868d0c8831f8ff45aec65a8b917cf9d17553bf1 (patch)
tree210fdc2ff2ffc5244222571b696ad0529fc3b9de /common.mk
parent1c6b6ad4e4439d4dbde607a0c69047e5a0e3eadd (diff)
downloadlibnice-6868d0c8831f8ff45aec65a8b917cf9d17553bf1.tar.gz
Disable strict aliasing.. since gcc 4.4.3, there are many warnings/errors caused by strict aliasing.. and it's hard to get the code clean without using unions everywhere especially when dealing with sockaddr_storage and sockaddr_in* structures. Since this is a socket library mainly, and sockaddr was designed for aliasing, it's best to just disable strict aliasing for the lib
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index c5a6ccd..1382422 100644
--- a/common.mk
+++ b/common.mk
@@ -1,6 +1,7 @@
ERROR_CFLAGS = \
$(LIBNICE_CFLAGS) \
+ -fno-strict-aliasing \
-Wextra \
-Wundef \
-Wnested-externs \