interface command_object_list_ parts cc 263 36 error memset used with

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
1) /interface/command_object_list_parts.cc:263:36: error: ‘memset’ used with constant zero length parameter; this could be due to transposed parameters [-Werror=memset-transposed-args]
memset( pname, 1024, 0 );
2) interface/mime/mime_recode.cc:194:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
if(parts[0].content_type.find("multipart/mixed")!=std::string::npos && a!=0)
^~
3) interface/unload/unload_data.cc: In function ‘int unload_one_session(int, int*, int)’:
interface/unload/unload_data.cc:191:17: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
if (type & OT_MASK_EXPORT_MARKED)
^~
4) interface/command_object_report.cc:223:13: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
if ( ( ( type & OT_MASK_ALLTYPES ) == 0 ) && ( nodeit->first < MAX_NODES_SUM ) )
5) voip/fax_decoder.h:81:50: error: comparison of constant ‘1’ with boolean expression is always false [-Werror=bool-compare]
if( m_packetContainer.previousLost() > 1 )
6) interface/command_system_state.cc:213:29: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
if( !parse_test_data_new_proto( stat_buf, stat_size, time, speed, version ) );