gtp: fix several compilation warnings
CC gtpie.lo gtpie.c: In function 'gtpie_encaps': gtpie.c:437:22: warning: variable 'm' set but not used [-Wunused-but-set-variable] union gtpie_member *m; ^ gtpie.c: In function 'gtpie_encaps2': gtpie.c:537:22: warning: variable 'm' set but not used [-Wunused-but-set-variable] union gtpie_member *m; ^ lookup.c: In function ‘lookup’: lookup.c:40:24: warning: typedef ‘ub1’ locally defined but not used [-Wunused-local-typedefs] typedef unsigned char ub1; /* unsigned 1-byte quantities */ ^ Still one compilation warning left in cmdline.c, but that code is autogenerated.
This commit is contained in:
parent
176e895bd6
commit
0eaa5b8e6c
|
@ -434,7 +434,6 @@ int gtpie_encaps(union gtpie_member *ie[], void *pack, unsigned *len)
|
||||||
int i;
|
int i;
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
unsigned char *end;
|
unsigned char *end;
|
||||||
union gtpie_member *m;
|
|
||||||
int iesize;
|
int iesize;
|
||||||
|
|
||||||
p = pack;
|
p = pack;
|
||||||
|
@ -445,7 +444,6 @@ int gtpie_encaps(union gtpie_member *ie[], void *pack, unsigned *len)
|
||||||
if (ie[i] != 0) {
|
if (ie[i] != 0) {
|
||||||
if (GTPIE_DEBUG)
|
if (GTPIE_DEBUG)
|
||||||
printf("gtpie_encaps. Type %d\n", i);
|
printf("gtpie_encaps. Type %d\n", i);
|
||||||
m = (union gtpie_member *)p;
|
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case GTPIE_CAUSE: /* TV GTPIE types with value length 1 */
|
case GTPIE_CAUSE: /* TV GTPIE types with value length 1 */
|
||||||
case GTPIE_REORDER:
|
case GTPIE_REORDER:
|
||||||
|
@ -534,7 +532,6 @@ int gtpie_encaps2(union gtpie_member ie[], unsigned int size,
|
||||||
unsigned int i, j;
|
unsigned int i, j;
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
unsigned char *end;
|
unsigned char *end;
|
||||||
union gtpie_member *m;
|
|
||||||
int iesize;
|
int iesize;
|
||||||
|
|
||||||
p = pack;
|
p = pack;
|
||||||
|
@ -548,7 +545,6 @@ int gtpie_encaps2(union gtpie_member ie[], unsigned int size,
|
||||||
printf
|
printf
|
||||||
("gtpie_encaps. Number %d, Type %d\n",
|
("gtpie_encaps. Number %d, Type %d\n",
|
||||||
i, ie[i].t);
|
i, ie[i].t);
|
||||||
m = (union gtpie_member *)p;
|
|
||||||
switch (ie[i].t) {
|
switch (ie[i].t) {
|
||||||
case GTPIE_CAUSE: /* TV GTPIE types with value length 1 */
|
case GTPIE_CAUSE: /* TV GTPIE types with value length 1 */
|
||||||
case GTPIE_REORDER:
|
case GTPIE_REORDER:
|
||||||
|
|
|
@ -37,7 +37,6 @@ register unsigned long int level; /* the previous hash, or an arbitrary value */
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef unsigned long int ub4; /* unsigned 4-byte quantities */
|
typedef unsigned long int ub4; /* unsigned 4-byte quantities */
|
||||||
typedef unsigned char ub1; /* unsigned 1-byte quantities */
|
|
||||||
register unsigned long int a, b, c, len;
|
register unsigned long int a, b, c, len;
|
||||||
|
|
||||||
/* Set up the internal state */
|
/* Set up the internal state */
|
||||||
|
|
Loading…
Reference in New Issue