Fix build warning (missing-braces, uninitialized).
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
const nnfw_tinfo_s * out_info)
{
GstTensorsInfo gst_in_info, gst_out_info;
- GstTensorMemory input[NNS_TENSOR_SIZE_LIMIT] = { 0, };
- GstTensorMemory output[NNS_TENSOR_SIZE_LIMIT] = { 0, };
+ GstTensorMemory input[NNS_TENSOR_SIZE_LIMIT] = { {0} };
+ GstTensorMemory output[NNS_TENSOR_SIZE_LIMIT] = { {0} };
gboolean failed = FALSE;
guint i, retry;
int err;
} while (0)
#define GST_TF_FW_INVOKE_COMPAT(priv,ret,in,out) do { \
+ ret = -1; \
if (GST_TF_FW_V0 ((priv)->fw)) { \
ret = (priv)->fw->invoke_NN (&(priv)->prop, &(priv)->privateData, (in), (out)); \
} else if (GST_TF_FW_V1 ((priv)->fw)) { \
ret = (priv)->fw->invoke ((priv)->fw, &(priv)->prop, (priv)->privateData, (in), (out)); \
- } else { \
- g_assert(FALSE); \
} \
} while (0)
GTensorFilterSinglePrivate *spriv;
GstTensorFilterPrivate *priv;
GstTensorMemory *_out;
- GstTensorMemory out_tensors[NNS_TENSOR_SIZE_LIMIT] = { 0, };
+ GstTensorMemory out_tensors[NNS_TENSOR_SIZE_LIMIT] = { {0} };
guint i;
gint status;
# Define warning flags for c and cpp
warning_flags = [
+ '-Wmissing-braces',
+ '-Wmaybe-uninitialized',
'-Wwrite-strings',
'-Wformat',
'-Wformat-nonliteral',