silence deprecated iODBC warnings

This commit is contained in:
Alex 2012-12-16 13:52:29 -06:00
parent 83b500057c
commit 19ef47474b
2 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,7 @@ Fabrizio Duhem
Patrick White Patrick White
Mike Naquin Mike Naquin
Roger Meier Roger Meier
Mathaus Mendel
-- --
$Id$ $Id$

View File

@ -61,6 +61,10 @@ else ifeq (0, $(shell test -e $(POCO_ODBC_LIB)/libiodbc$(LIBLINKEXT); echo $$?))
SYSLIBS += -liodbc -liodbcinst SYSLIBS += -liodbc -liodbcinst
COMMONFLAGS += -DPOCO_IODBC -I/usr/include/iodbc COMMONFLAGS += -DPOCO_IODBC -I/usr/include/iodbc
# TODO: OSX >= 10.8 deprecated non-Unicode ODBC API functions, silence warnings until iODBC Unicode support
COMMONFLAGS += -Wno-deprecated-declarations
else else
$(error No ODBC library found. Please install unixODBC or iODBC or specify POCO_ODBC_LIB and try again) $(error No ODBC library found. Please install unixODBC or iODBC or specify POCO_ODBC_LIB and try again)
endif endif