Skip to content
Snippets Groups Projects
Commit 3aab34e0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Remove do-nothings that Coverity complains do nothing.

parent dc2b5867
No related branches found
No related tags found
No related merge requests found
...@@ -679,9 +679,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -679,9 +679,6 @@ char* xp_asprintf_next(char *format, int type, ...)
switch(correct_type) { switch(correct_type) {
case XP_PRINTF_TYPE_CHAR: case XP_PRINTF_TYPE_CHAR:
switch(type) { switch(type) {
case XP_PRINTF_TYPE_CHAR:
case XP_PRINTF_TYPE_INT:
break;
case XP_PRINTF_TYPE_UINT: case XP_PRINTF_TYPE_UINT:
i=ui; i=ui;
break; break;
...@@ -764,8 +761,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -764,8 +761,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_INT: case XP_PRINTF_TYPE_INT:
ui=i; ui=i;
break; break;
case XP_PRINTF_TYPE_UINT:
break;
case XP_PRINTF_TYPE_LONG: case XP_PRINTF_TYPE_LONG:
ui=l; ui=l;
break; break;
...@@ -806,8 +801,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -806,8 +801,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_UINT: case XP_PRINTF_TYPE_UINT:
l=ui; l=ui;
break; break;
case XP_PRINTF_TYPE_LONG:
break;
case XP_PRINTF_TYPE_ULONG: case XP_PRINTF_TYPE_ULONG:
l=ul; l=ul;
break; break;
...@@ -848,8 +841,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -848,8 +841,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_LONG: case XP_PRINTF_TYPE_LONG:
ul=l; ul=l;
break; break;
case XP_PRINTF_TYPE_ULONG:
break;
#if defined(XP_PRINTF_TYPE_LONGLONG) #if defined(XP_PRINTF_TYPE_LONGLONG)
case XP_PRINTF_TYPE_LONGLONG: case XP_PRINTF_TYPE_LONGLONG:
ul=ll; ul=ll;
...@@ -891,8 +882,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -891,8 +882,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_ULONG: case XP_PRINTF_TYPE_ULONG:
ll=ul; ll=ul;
break; break;
case XP_PRINTF_TYPE_LONGLONG:
break;
case XP_PRINTF_TYPE_ULONGLONG: case XP_PRINTF_TYPE_ULONGLONG:
ll=ull; ll=ull;
break; break;
...@@ -931,8 +920,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -931,8 +920,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_LONGLONG: case XP_PRINTF_TYPE_LONGLONG:
ull=ll; ull=ll;
break; break;
case XP_PRINTF_TYPE_ULONGLONG:
break;
case XP_PRINTF_TYPE_CHARP: case XP_PRINTF_TYPE_CHARP:
ull=strtoull(cp, NULL, 0); ull=strtoull(cp, NULL, 0);
break; break;
...@@ -983,8 +970,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -983,8 +970,6 @@ char* xp_asprintf_next(char *format, int type, ...)
cp=num_str; cp=num_str;
break; break;
#endif #endif
case XP_PRINTF_TYPE_CHARP:
break;
case XP_PRINTF_TYPE_DOUBLE: case XP_PRINTF_TYPE_DOUBLE:
sprintf(num_str, "%f", d); sprintf(num_str, "%f", d);
cp=num_str; cp=num_str;
...@@ -1030,8 +1015,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -1030,8 +1015,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_CHARP: case XP_PRINTF_TYPE_CHARP:
d=strtod(cp, NULL); d=strtod(cp, NULL);
break; break;
case XP_PRINTF_TYPE_DOUBLE:
break;
case XP_PRINTF_TYPE_LONGDOUBLE: case XP_PRINTF_TYPE_LONGDOUBLE:
d=ld; d=ld;
break; break;
...@@ -1076,8 +1059,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -1076,8 +1059,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_DOUBLE: case XP_PRINTF_TYPE_DOUBLE:
ld=d; ld=d;
break; break;
case XP_PRINTF_TYPE_LONGDOUBLE:
break;
case XP_PRINTF_TYPE_VOIDP: case XP_PRINTF_TYPE_VOIDP:
ld=(long double)((long int)pntr); ld=(long double)((long int)pntr);
break; break;
...@@ -1119,8 +1100,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -1119,8 +1100,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_LONGDOUBLE: case XP_PRINTF_TYPE_LONGDOUBLE:
pntr=(void *)((intptr_t)ld); pntr=(void *)((intptr_t)ld);
break; break;
case XP_PRINTF_TYPE_VOIDP:
break;
case XP_PRINTF_TYPE_SIZET: case XP_PRINTF_TYPE_SIZET:
pntr=(void *)((intptr_t)s); pntr=(void *)((intptr_t)s);
break; break;
...@@ -1165,8 +1144,6 @@ char* xp_asprintf_next(char *format, int type, ...) ...@@ -1165,8 +1144,6 @@ char* xp_asprintf_next(char *format, int type, ...)
case XP_PRINTF_TYPE_VOIDP: case XP_PRINTF_TYPE_VOIDP:
s=(size_t)pntr; s=(size_t)pntr;
break; break;
case XP_PRINTF_TYPE_SIZET:
break;
} }
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment