Skip to content

Commit 249e2f0

Browse files
committed
Add cppcheck suppression for unused struct member in iomanX_port.h
1 parent 45e8068 commit 249e2f0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/iomanX_port.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ extern int _init_hdlfs(int argc, char *argv[]);
107107
#define HDIOC_FREESECTOR 0x480A
108108

109109
// Arbitrarily-named commands
110-
#define HIOCTRANSFER 0x6832 // Used by PFS.IRX to read/write data
111-
#define HIOCGETSIZE 0x6833 // For main(0)/subs(1+)
112-
#define HIOCSETPARTERROR 0x6834 // Set (sector of a partition) that has an error
113-
#define HIOCGETPARTERROR 0x6835 // Get (sector of a partition) that has an error
110+
#define HIOCTRANSFER 0x6832 // Used by PFS.IRX to read/write data
111+
#define HIOCGETSIZE 0x6833 // For main(0)/subs(1+)
112+
#define HIOCSETPARTERROR 0x6834 // Set (sector of a partition) that has an error
113+
#define HIOCGETPARTERROR 0x6835 // Get (sector of a partition) that has an error
114114

115115
// pfs
116116

@@ -167,9 +167,11 @@ typedef struct
167167
/*24*/ unsigned int hisize;
168168
/*28*/ unsigned int private_0; // Number of subs (main) / subpart number (sub)
169169
/*2c*/ unsigned int private_1; // partition size low part
170+
// cppcheck-suppress unusedStructMember
170171
/*30*/ unsigned int private_2; // partition size high part
171172
/*34*/ unsigned int private_3;
172173
/*38*/ unsigned int private_4;
174+
// cppcheck-suppress unusedStructMember
173175
/*3c*/ unsigned int private_5; // Sector start
174176
} iox_stat_t;
175177

0 commit comments

Comments
 (0)