Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-core / stx-ha / files / 0004-Cast-size_t-to-int-to-silence-gcc-8.3.patch
1 From 5d23f7c297943f8ce89ace74f34c6c4ee0e87ee3 Mon Sep 17 00:00:00 2001
2 From: "Sar Ashki, Babak" <Babak.SarAshki@windriver.com>
3 Date: Fri, 24 Jan 2020 14:33:20 -0800
4 Subject: [PATCH] Cast size_t to int to silence gcc 8.3
5
6 ---
7  service-mgmt/sm/src/sm_cluster_hbs_info_msg.cpp | 2 +-
8  1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/service-mgmt/sm/src/sm_cluster_hbs_info_msg.cpp b/service-mgmt/sm/src/sm_cluster_hbs_info_msg.cpp
11 index ca91c18..cfb9034 100644
12 --- a/service-mgmt/sm/src/sm_cluster_hbs_info_msg.cpp
13 +++ b/service-mgmt/sm/src/sm_cluster_hbs_info_msg.cpp
14 @@ -182,7 +182,7 @@ void SmClusterHbsInfoMsg::_cluster_hbs_info_msg_received( int selobj, int64_t us
15              }
16              return;
17          }
18 -        DPRINTFD("msg received %d bytes. buffer size %d", bytes_read, sizeof(msg));
19 +        DPRINTFD("msg received %d bytes. buffer size %d", bytes_read, (int)sizeof(msg));
20          if(size_of_msg_header > (unsigned int)bytes_read)
21          {
22              DPRINTFE("size not right, msg size %d, expected not less than %d",
23 -- 
24 2.23.0
25