macosx warning suppression part 3

This commit is contained in:
nhmall
2019-06-25 21:44:38 -04:00
parent 7775918a1a
commit 06c4b6cd7e
2 changed files with 21 additions and 21 deletions
+10 -11
View File
@@ -83,7 +83,7 @@ NHFILE *nhfp;
union any *d_any; union any *d_any;
const char *myparent UNUSED; const char *myparent UNUSED;
const char *myname UNUSED; const char *myname UNUSED;
int cnt; int cnt UNUSED;
{ {
const char *parent = "any"; const char *parent = "any";
@@ -132,7 +132,7 @@ NHFILE *nhfp;
aligntyp *d_aligntyp; aligntyp *d_aligntyp;
const char *myparent UNUSED; const char *myparent UNUSED;
const char *myname UNUSED; const char *myname UNUSED;
int cnt; int cnt UNUSED;
{ {
int itmp; int itmp;
const char *parent = "aligntyp"; const char *parent = "aligntyp";
@@ -149,7 +149,7 @@ NHFILE *nhfp;
uint8_t *d_bitfield; uint8_t *d_bitfield;
const char *myparent UNUSED; const char *myparent UNUSED;
const char *myname UNUSED; const char *myname UNUSED;
int cnt; int cnt UNUSED;
{ {
const char *parent = "bitfield"; const char *parent = "bitfield";
@@ -474,7 +474,7 @@ int cnt;
nhUse(parent); nhUse(parent);
/* cnt is the number of characters */ /* cnt is the number of characters */
for (i = 0; i < cnt; ++i) { for (i = 0; i < cnt; ++i) {
if ((*src < 32) || (*src == '\\') || (*src > 128)) { if ((*src < 32) || (*src == '\\') || (*src > 127)) {
*dest++ = '\\'; *dest++ = '\\';
intval = (int) *src++; intval = (int) *src++;
Sprintf(sval, "%03d", intval); Sprintf(sval, "%03d", intval);
@@ -488,10 +488,10 @@ int cnt;
} }
void void
ascii_sfo_addinfo(nhfp, parent, action, myname, index) ascii_sfo_addinfo(nhfp, parent, action, myname, indx)
NHFILE *nhfp; NHFILE *nhfp UNUSED;
const char *parent UNUSED, *action UNUSED, *myname UNUSED; const char *parent UNUSED, *action UNUSED, *myname UNUSED;
int index; int indx UNUSED;
{ {
/* ignored */ /* ignored */
} }
@@ -1094,10 +1094,10 @@ int cnt;
} }
void void
ascii_sfi_addinfo(nhfp, myparent, action, myname, index) ascii_sfi_addinfo(nhfp, myparent, action, myname, indx)
NHFILE *nhfp; NHFILE *nhfp UNUSED;
const char *myparent UNUSED, *action UNUSED, *myname UNUSED; const char *myparent UNUSED, *action UNUSED, *myname UNUSED;
int index; int indx UNUSED;
{ {
/* not doing anything here */ /* not doing anything here */
} }
@@ -1108,7 +1108,6 @@ NHFILE *nhfp;
char *inbuf; char *inbuf;
size_t inbufsz; size_t inbufsz;
{ {
boolean rv = TRUE; /* assume successful parse */
char *ep, *sep; char *ep, *sep;
if (fgets(inbuf, (int) inbufsz, nhfp->fpdef)) { if (fgets(inbuf, (int) inbufsz, nhfp->fpdef)) {
+11 -10
View File
@@ -145,6 +145,8 @@ int cnt;
uint32_t ui32; uint32_t ui32;
int32_t i32; int32_t i32;
int8_t i8; int8_t i8;
nhUse(parent);
for (i = 0; i < cnt; ++i) { for (i = 0; i < cnt; ++i) {
ui64 = (uint64_t) d_any->a_void; ui64 = (uint64_t) d_any->a_void;
fwrite(&ui64, sizeof ui64, 1, nhfp->fpdef); fwrite(&ui64, sizeof ui64, 1, nhfp->fpdef);
@@ -214,7 +216,7 @@ NHFILE *nhfp;
uint8_t *d_bitfield; uint8_t *d_bitfield;
const char *myparent UNUSED; const char *myparent UNUSED;
const char *myname UNUSED; const char *myname UNUSED;
int cnt; int cnt UNUSED;
{ {
const char *parent = "bitfield"; const char *parent = "bitfield";
@@ -289,7 +291,6 @@ int cnt;
int i; int i;
int8_t p; int8_t p;
nhUse(parent);
/* /*
* sbrooms is an array of pointers to mkroom. * sbrooms is an array of pointers to mkroom.
* That array dimension is MAX_SUBROOMS. * That array dimension is MAX_SUBROOMS.
@@ -622,7 +623,7 @@ int cnt;
nhUse(parent); nhUse(parent);
/* cnt is the number of characters */ /* cnt is the number of characters */
for (i = 0; i < cnt; ++i) { for (i = 0; i < cnt; ++i) {
if ((*src < 32) || (*src == '\\') || (*src > 128)) { if ((*src < 32) || (*src == '\\') || (*src > 127)) {
*dest++ = '\\'; *dest++ = '\\';
outcount++; outcount++;
intval = (int) *src++; intval = (int) *src++;
@@ -653,10 +654,10 @@ int cnt;
} }
void void
lendian_sfo_addinfo(nhfp, parent, action, myname, index) lendian_sfo_addinfo(nhfp, parent, action, myname, indx)
NHFILE *nhfp; NHFILE *nhfp UNUSED;
const char *parent UNUSED, *action UNUSED, *myname UNUSED; const char *parent UNUSED, *action UNUSED, *myname UNUSED;
int index; int indx UNUSED;
{ {
/* ignored */ /* ignored */
} }
@@ -1323,10 +1324,10 @@ int cnt;
} }
void void
lendian_sfi_addinfo(nhfp, myparent, action, myname, index) lendian_sfi_addinfo(nhfp, myparent, action, myname, indx)
NHFILE *nhfp; NHFILE *nhfp UNUSED;
const char *myparent, *action, *myname; const char *myparent UNUSED, *action UNUSED, *myname UNUSED;
int index; int indx UNUSED;
{ {
/* not doing anything here */ /* not doing anything here */
} }