Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
28926c73
Commit
28926c73
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Remove those most NOPy of NOPcodes... i=i and friends.
Clang warnings.
parent
c021679c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/xpprintf.c
+0
-12
0 additions, 12 deletions
src/xpdev/xpprintf.c
with
0 additions
and
12 deletions
src/xpdev/xpprintf.c
+
0
−
12
View file @
28926c73
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment