Skip to content
Snippets Groups Projects
Commit 28926c73 authored by deuce's avatar deuce
Browse files

Remove those most NOPy of NOPcodes... i=i and friends.

Clang warnings.
parent c021679c
No related branches found
No related tags found
No related merge requests found
...@@ -670,7 +670,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -670,7 +670,6 @@ char *xp_asprintf_next(char *format, int type, ...)
switch(type) { switch(type) {
case XP_PRINTF_TYPE_CHAR: case XP_PRINTF_TYPE_CHAR:
case XP_PRINTF_TYPE_INT: case XP_PRINTF_TYPE_INT:
i=i;
break; break;
case XP_PRINTF_TYPE_UINT: case XP_PRINTF_TYPE_UINT:
i=ui; i=ui;
...@@ -713,7 +712,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -713,7 +712,6 @@ char *xp_asprintf_next(char *format, int type, ...)
switch(type) { switch(type) {
case XP_PRINTF_TYPE_CHAR: case XP_PRINTF_TYPE_CHAR:
case XP_PRINTF_TYPE_INT: case XP_PRINTF_TYPE_INT:
i=i;
break; break;
case XP_PRINTF_TYPE_UINT: case XP_PRINTF_TYPE_UINT:
i=ui; i=ui;
...@@ -756,7 +754,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -756,7 +754,6 @@ char *xp_asprintf_next(char *format, int type, ...)
ui=i; ui=i;
break; break;
case XP_PRINTF_TYPE_UINT: case XP_PRINTF_TYPE_UINT:
ui=ui;
break; break;
case XP_PRINTF_TYPE_LONG: case XP_PRINTF_TYPE_LONG:
ui=l; ui=l;
...@@ -799,7 +796,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -799,7 +796,6 @@ char *xp_asprintf_next(char *format, int type, ...)
l=ui; l=ui;
break; break;
case XP_PRINTF_TYPE_LONG: case XP_PRINTF_TYPE_LONG:
l=l;
break; break;
case XP_PRINTF_TYPE_ULONG: case XP_PRINTF_TYPE_ULONG:
l=ul; l=ul;
...@@ -842,7 +838,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -842,7 +838,6 @@ char *xp_asprintf_next(char *format, int type, ...)
ul=l; ul=l;
break; break;
case XP_PRINTF_TYPE_ULONG: case XP_PRINTF_TYPE_ULONG:
ul=ul;
break; break;
#if defined(XP_PRINTF_TYPE_LONGLONG) #if defined(XP_PRINTF_TYPE_LONGLONG)
case XP_PRINTF_TYPE_LONGLONG: case XP_PRINTF_TYPE_LONGLONG:
...@@ -886,7 +881,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -886,7 +881,6 @@ char *xp_asprintf_next(char *format, int type, ...)
ll=ul; ll=ul;
break; break;
case XP_PRINTF_TYPE_LONGLONG: case XP_PRINTF_TYPE_LONGLONG:
ll=ll;
break; break;
case XP_PRINTF_TYPE_ULONGLONG: case XP_PRINTF_TYPE_ULONGLONG:
ll=ull; ll=ull;
...@@ -927,7 +921,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -927,7 +921,6 @@ char *xp_asprintf_next(char *format, int type, ...)
ull=ll; ull=ll;
break; break;
case XP_PRINTF_TYPE_ULONGLONG: case XP_PRINTF_TYPE_ULONGLONG:
ull=ull;
break; break;
case XP_PRINTF_TYPE_CHARP: case XP_PRINTF_TYPE_CHARP:
ull=strtoull(cp, NULL, 0); ull=strtoull(cp, NULL, 0);
...@@ -980,7 +973,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -980,7 +973,6 @@ char *xp_asprintf_next(char *format, int type, ...)
break; break;
#endif #endif
case XP_PRINTF_TYPE_CHARP: case XP_PRINTF_TYPE_CHARP:
cp=cp;
break; break;
case XP_PRINTF_TYPE_DOUBLE: case XP_PRINTF_TYPE_DOUBLE:
sprintf(num_str, "%f", d); sprintf(num_str, "%f", d);
...@@ -1028,7 +1020,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -1028,7 +1020,6 @@ char *xp_asprintf_next(char *format, int type, ...)
d=strtod(cp, NULL); d=strtod(cp, NULL);
break; break;
case XP_PRINTF_TYPE_DOUBLE: case XP_PRINTF_TYPE_DOUBLE:
d=d;
break; break;
case XP_PRINTF_TYPE_LONGDOUBLE: case XP_PRINTF_TYPE_LONGDOUBLE:
d=ld; d=ld;
...@@ -1072,7 +1063,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -1072,7 +1063,6 @@ char *xp_asprintf_next(char *format, int type, ...)
ld=d; ld=d;
break; break;
case XP_PRINTF_TYPE_LONGDOUBLE: case XP_PRINTF_TYPE_LONGDOUBLE:
ld=ld;
break; break;
case XP_PRINTF_TYPE_VOIDP: case XP_PRINTF_TYPE_VOIDP:
ld=(long double)((long int)pntr); ld=(long double)((long int)pntr);
...@@ -1116,7 +1106,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -1116,7 +1106,6 @@ char *xp_asprintf_next(char *format, int type, ...)
pntr=(void *)(long int)ld; pntr=(void *)(long int)ld;
break; break;
case XP_PRINTF_TYPE_VOIDP: case XP_PRINTF_TYPE_VOIDP:
pntr=pntr;
break; break;
case XP_PRINTF_TYPE_SIZET: case XP_PRINTF_TYPE_SIZET:
pntr=(void *)s; pntr=(void *)s;
...@@ -1159,7 +1148,6 @@ char *xp_asprintf_next(char *format, int type, ...) ...@@ -1159,7 +1148,6 @@ char *xp_asprintf_next(char *format, int type, ...)
s=(size_t)pntr; s=(size_t)pntr;
break; break;
case XP_PRINTF_TYPE_SIZET: case XP_PRINTF_TYPE_SIZET:
s=s;
break; break;
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment