Skip to content

Commit 068f2d1

Browse files
author
deepikabhavnani
committed
Resolve IAR build issue
IAR not able to assign default zero value in array and complaints of internal error as below: [ERROR] Internal error: [Front end]: assertion failed at: "..\..\Translator\compiler_core\src\parser\edg\decl_inits.c", line 2031
1 parent 81fc940 commit 068f2d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

TESTS/netsocket/tcp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Timer tc_bucket; // Timer to limit a test cases run time
3939
}
4040

4141
#ifdef MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
42-
mbed_stats_socket_t tcp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT] = {0};
42+
mbed_stats_socket_t tcp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
4343
#endif
4444

4545
char tcp_global::rx_buffer[RX_BUFF_SIZE];

TESTS/netsocket/udp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ NetworkInterface *net;
3838
}
3939

4040
#ifdef MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
41-
mbed_stats_socket_t udp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT] = {0};
41+
mbed_stats_socket_t udp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
4242
#endif
4343

4444
NetworkInterface *get_interface()

features/netsocket/SocketStats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#ifdef MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
2828
SingletonPtr<PlatformMutex> SocketStats::_mutex;
29-
mbed_stats_socket_t SocketStats::_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT] = {0};
29+
mbed_stats_socket_t SocketStats::_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
3030
uint32_t SocketStats::_size = 0;
3131

3232
int SocketStats::get_entry_position(const Socket *const reference_id)

0 commit comments

Comments
 (0)