Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
dimbor
nx-libs
Commits
057ddde0
You need to sign in or sign up before continuing.
Commit
057ddde0
authored
Oct 16, 2016
by
Ulrich Sibiller
Committed by
Ulrich Sibiller
Oct 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xkmread.c: use _X_UNUSED to avoid compiler warning when result is not needed
parent
33b5911f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
xkmread.c
nx-X11/programs/Xserver/xkb/xkmread.c
+7
-4
No files found.
nx-X11/programs/Xserver/xkb/xkmread.c
View file @
057ddde0
...
@@ -1085,7 +1085,8 @@ unsigned i,size_toc;
...
@@ -1085,7 +1085,8 @@ unsigned i,size_toc;
}
}
return
0
;
return
0
;
}
}
fread
(
file_info
,
SIZEOF
(
xkmFileInfo
),
1
,
file
);
_X_UNUSED
int
ignored_result
;
ignored_result
=
fread
(
file_info
,
SIZEOF
(
xkmFileInfo
),
1
,
file
);
size_toc
=
file_info
->
num_toc
;
size_toc
=
file_info
->
num_toc
;
if
(
size_toc
>
max_toc
)
{
if
(
size_toc
>
max_toc
)
{
#ifdef DEBUG
#ifdef DEBUG
...
@@ -1095,7 +1096,7 @@ unsigned i,size_toc;
...
@@ -1095,7 +1096,7 @@ unsigned i,size_toc;
size_toc
=
max_toc
;
size_toc
=
max_toc
;
}
}
for
(
i
=
0
;
i
<
size_toc
;
i
++
)
{
for
(
i
=
0
;
i
<
size_toc
;
i
++
)
{
fread
(
&
toc
[
i
],
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
ignored_result
=
fread
(
&
toc
[
i
],
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
}
}
return
1
;
return
1
;
}
}
...
@@ -1126,7 +1127,8 @@ int nRead;
...
@@ -1126,7 +1127,8 @@ int nRead;
return
0
;
return
0
;
}
}
fseek
(
file
,
toc
->
offset
,
SEEK_SET
);
fseek
(
file
,
toc
->
offset
,
SEEK_SET
);
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
_X_UNUSED
int
ignored_result
;
ignored_result
=
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
nRead
=
SIZEOF
(
xkmSectionInfo
);
nRead
=
SIZEOF
(
xkmSectionInfo
);
if
((
tmpTOC
.
type
!=
toc
->
type
)
||
(
tmpTOC
.
format
!=
toc
->
format
)
||
if
((
tmpTOC
.
type
!=
toc
->
type
)
||
(
tmpTOC
.
format
!=
toc
->
format
)
||
(
tmpTOC
.
size
!=
toc
->
size
)
||
(
tmpTOC
.
offset
!=
toc
->
offset
))
{
(
tmpTOC
.
size
!=
toc
->
size
)
||
(
tmpTOC
.
offset
!=
toc
->
offset
))
{
...
@@ -1201,7 +1203,8 @@ char name[100];
...
@@ -1201,7 +1203,8 @@ char name[100];
case
XkmSymbolsIndex
:
case
XkmSymbolsIndex
:
case
XkmGeometryIndex
:
case
XkmGeometryIndex
:
fseek
(
file
,
toc
->
offset
,
SEEK_SET
);
fseek
(
file
,
toc
->
offset
,
SEEK_SET
);
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
_X_UNUSED
int
ignored_result
;
ignored_result
=
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
if
((
tmpTOC
.
type
!=
toc
->
type
)
||
(
tmpTOC
.
format
!=
toc
->
format
)
||
if
((
tmpTOC
.
type
!=
toc
->
type
)
||
(
tmpTOC
.
format
!=
toc
->
format
)
||
(
tmpTOC
.
size
!=
toc
->
size
)
||
(
tmpTOC
.
offset
!=
toc
->
offset
))
{
(
tmpTOC
.
size
!=
toc
->
size
)
||
(
tmpTOC
.
offset
!=
toc
->
offset
))
{
_XkbLibError
(
_XkbErrIllegalContents
,
"XkmReadFileSectionName"
,
0
);
_XkbLibError
(
_XkbErrIllegalContents
,
"XkmReadFileSectionName"
,
0
);
...
...
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