Commit cd645c0f authored by Nick Draper's avatar Nick Draper
Browse files

moved some file suppressions to in line suppressions

re #15281
parent 2c377c3d
......@@ -79,6 +79,8 @@ struct RPB_STRUCT {
int r_prop; ///< RB (proposal) number
int spare[10]; ///< to pad out to 32*4 bytes
/// constructor
// cppcheck-suppress memsetClassFloat
RPB_STRUCT() { memset(this, 0, sizeof(RPB_STRUCT)); }
};
......@@ -121,6 +123,7 @@ struct IVPB_STRUCT {
float i_aofi; ///< angle of incidence (CRISP)
int spare[29]; ///< to pad out to 64*4 bytes
/// constructor
// cppcheck-suppress memsetClassFloat
IVPB_STRUCT() { memset(this, 0, sizeof(IVPB_STRUCT)); }
};
......@@ -150,6 +153,7 @@ struct SPB_STRUCT {
int e_eqname; ///< dunno
int spare[33]; ///< to bring up to 64*4 bytes
/// constructor
// cppcheck-suppress memsetClassFloat
SPB_STRUCT() { memset(this, 0, sizeof(SPB_STRUCT)); }
};
......@@ -175,6 +179,7 @@ struct SE_STRUCT {
int sep_pre_proc; ///< pre process routine number
int sep_cam_vals[12]; ///< camac values
/// constructor
// cppcheck-suppress memsetClassFloat
SE_STRUCT() { memset(this, 0, sizeof(SE_STRUCT)); }
};
......@@ -227,6 +232,7 @@ struct DHDR_STRUCT {
int d_exp_filesize; ///< equivalent version 1 filesize
int unused[26]; ///< to bring size to 32*4 bytes
/// constructor
// cppcheck-suppress memsetClassFloat
DHDR_STRUCT() {
memset(this, 0, sizeof(DHDR_STRUCT));
d_comp = 1;
......
// suppress memleak and exceptNew errors in the file src/file1.cpp
//memleak:src/file1.cpp
//exceptNew:src/file1.cpp
memsetClassFloat:/Users/builder/Jenkins/workspace/cppcheck-1.72/Framework/DataHandling/src/LoadRaw/isisraw.h
// suppress specific rule in specific files
// NOTE this needs the full path to the file, so would need this file to be generated by cmake
// as different build servers have different starts to the file path
// Example:
// memsetClassFloat:/Users/builder/Jenkins/workspace/cppcheck-1.72/Framework/DataHandling/src/LoadRaw/isisraw.h
// suppress in all files - BE CAREFULL not to leave trailing spaces after the rule id. or empty lines
// For a library this is not a problem per se
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment