Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
6f9a9160
Commit
6f9a9160
authored
Apr 25, 2012
by
Christian Beier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some compiler warnings thrown with newer gcc.
parent
413ca0df
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
turbojpeg.c
common/turbojpeg.c
+1
-0
rfbserver.c
libvncserver/rfbserver.c
+1
-3
websockets.c
libvncserver/websockets.c
+3
-2
tjbench.c
test/tjbench.c
+2
-1
No files found.
common/turbojpeg.c
View file @
6f9a9160
...
...
@@ -108,6 +108,7 @@ static const tjscalingfactor sf[NUMSF]={
retval=-1; goto bailout;}
#define getinstance(handle) tjinstance *this=(tjinstance *)handle; \
j_compress_ptr cinfo=NULL; j_decompress_ptr dinfo=NULL; \
(void) cinfo; (void) dinfo;
/* silence warnings */
\
if(!this) {snprintf(errStr, JMSG_LENGTH_MAX, "Invalid handle"); \
return -1;} \
cinfo=&this->cinfo; dinfo=&this->dinfo;
...
...
libvncserver/rfbserver.c
View file @
6f9a9160
...
...
@@ -228,9 +228,7 @@ void
rfbNewClientConnection
(
rfbScreenInfoPtr
rfbScreen
,
int
sock
)
{
rfbClientPtr
cl
;
cl
=
rfbNewClient
(
rfbScreen
,
sock
);
rfbNewClient
(
rfbScreen
,
sock
);
}
...
...
libvncserver/websockets.c
View file @
6f9a9160
...
...
@@ -622,7 +622,8 @@ webSocketsDecodeHybi(rfbClientPtr cl, char *dst, int len)
int
i
;
unsigned
char
opcode
;
ws_ctx_t
*
wsctx
=
(
ws_ctx_t
*
)
cl
->
wsctx
;
int
flength
,
fin
,
fhlen
;
int
flength
,
fhlen
;
/* int fin; */
/* not used atm */
// rfbLog(" <== %s[%d]: %d cl: %p, wsctx: %p-%p (%d)\n", __func__, gettid(), len, cl, wsctx, (char *)wsctx + sizeof(ws_ctx_t), sizeof(ws_ctx_t));
...
...
@@ -662,7 +663,7 @@ webSocketsDecodeHybi(rfbClientPtr cl, char *dst, int len)
}
opcode
=
header
->
b0
&
0x0f
;
fin
=
(
header
->
b0
&
0x80
)
>>
7
;
/* fin = (header->b0 & 0x80) >> 7; */
/* not used atm */
flength
=
header
->
b1
&
0x7f
;
/*
...
...
test/tjbench.c
View file @
6f9a9160
...
...
@@ -38,7 +38,8 @@
#define _throw(op, err) { \
printf("ERROR in line %d while %s:\n%s\n", __LINE__, op, err); \
retval=-1; goto bailout;}
(void)retval;
/* silence warning */
\
retval=-1; goto bailout;}
#define _throwunix(m) _throw(m, strerror(errno))
#define _throwtj(m) _throw(m, tjGetErrorStr())
#define _throwbmp(m) _throw(m, bmpgeterr())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment