From 23fb2394c5b8fe3a143c7c0018a75edcb192215f Mon Sep 17 00:00:00 2001 From: Mikhail Antropov Date: Thu, 16 Jun 2022 19:34:39 +0300 Subject: [PATCH] OSCBS-23 Fix PR#1 --- ports/bsd/bacport.h | 2 +- ports/linux/bacport.h | 3 +-- ports/lwip/bacport.h | 2 +- ports/win32/bacport.h | 9 +-------- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/ports/bsd/bacport.h b/ports/bsd/bacport.h index 9c2aae9b..e87235db 100644 --- a/ports/bsd/bacport.h +++ b/ports/bsd/bacport.h @@ -100,6 +100,6 @@ extern int bip_get_local_netmask( _read_property, _write_property, _RPM_list, \ _RR_info, _iterator, _value_list, _COV, \ _COV_clear, _intrinsic_reporting) \ - /*TODO Add compile error "Unsupported BACNET_OBJECT_TABLE for this platform." */ + static_assert(false, "Unsupported BACNET_OBJECT_TABLE for this platform") #endif diff --git a/ports/linux/bacport.h b/ports/linux/bacport.h index 4d63c2d2..aace0f90 100644 --- a/ports/linux/bacport.h +++ b/ports/linux/bacport.h @@ -106,8 +106,7 @@ _read_property, _write_property, _RPM_list, \ _RR_info, _iterator, _value_list, _COV, \ _COV_clear, _intrinsic_reporting) \ -/*TODO Add compile error "Unsupported BACNET_OBJECT_TABLE for this platform." */ - + static_assert(false, "Unsupported BACNET_OBJECT_TABLE for this platform") /** @file linux/bacport.h Includes Linux network headers. */ diff --git a/ports/lwip/bacport.h b/ports/lwip/bacport.h index 9867960c..91f40165 100644 --- a/ports/lwip/bacport.h +++ b/ports/lwip/bacport.h @@ -41,6 +41,6 @@ _read_property, _write_property, _RPM_list, \ _RR_info, _iterator, _value_list, _COV, \ _COV_clear, _intrinsic_reporting) \ - /*TODO Add compile error "Unsupported BACNET_OBJECT_TABLE for this platform." */ + static_assert(false, "Unsupported BACNET_OBJECT_TABLE for this platform") #endif diff --git a/ports/win32/bacport.h b/ports/win32/bacport.h index f3e6ab26..a7be6ef9 100644 --- a/ports/win32/bacport.h +++ b/ports/win32/bacport.h @@ -70,12 +70,6 @@ and globals in favor of more secure versions. */ #endif #include -#if defined(__BORLANDC__) || defined(_WIN32) -/* seems to not be defined in time.h as specified by The Open Group */ -/* difference from UTC and local standard time */ -long int timezone; -#endif - #ifdef _MSC_VER #define inline __inline #endif @@ -93,7 +87,6 @@ long int timezone; _read_property, _write_property, _RPM_list, \ _RR_info, _iterator, _value_list, _COV, \ _COV_clear, _intrinsic_reporting) \ -/*TODO Add compile error "Unsupported BACNET_OBJECT_TABLE for this platform." */ - + static_assert(false, "Unsupported BACNET_OBJECT_TABLE for this platform") #endif