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