Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xf86-video-sis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xorg
driver
xf86-video-sis
Commits
413dfdfc
Commit
413dfdfc
authored
Jul 11, 2018
by
Kevin Brace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elimination of many "variable set but not used" compilation warnings
Signed-off-by:
Kevin Brace
<
kevinbrace@gmx.com
>
parent
5559abc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
13 deletions
+4
-13
src/init.c
src/init.c
+1
-2
src/init301.c
src/init301.c
+2
-8
src/sis310_accel.c
src/sis310_accel.c
+1
-3
No files found.
src/init.c
View file @
413dfdfc
...
...
@@ -2669,7 +2669,7 @@ static void
SiS_SetCRT1ModeRegs
(
struct
SiS_Private
*
SiS_Pr
,
unsigned
short
ModeNo
,
unsigned
short
ModeIdIndex
,
unsigned
short
RRTI
)
{
unsigned
short
data
,
infoflag
=
0
,
modeflag
,
resindex
;
unsigned
short
data
,
infoflag
=
0
,
modeflag
;
#ifdef SIS315H
unsigned
char
*
ROMAddr
=
SiS_Pr
->
VirtualRomBase
;
unsigned
short
data2
,
data3
;
...
...
@@ -2680,7 +2680,6 @@ SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
if
(
SiS_Pr
->
UseCustomMode
)
{
infoflag
=
SiS_Pr
->
CInfoFlag
;
}
else
{
resindex
=
SiS_GetResInfo
(
SiS_Pr
,
ModeNo
,
ModeIdIndex
);
if
(
ModeNo
>
0x13
)
{
infoflag
=
SiS_Pr
->
SiS_RefIndex
[
RRTI
].
Ext_InfoFlag
;
}
...
...
src/init301.c
View file @
413dfdfc
...
...
@@ -2256,17 +2256,15 @@ SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned shor
unsigned short RefreshRateTableIndex)
{
unsigned short CRT2Index, VCLKIndex = 0, VCLKIndexGEN = 0, VCLKIndexGENCRT = 0;
unsigned short
modeflag,
resinfo, tempbx;
unsigned short resinfo, tempbx;
const unsigned char *CHTVVCLKPtr = NULL;
if(ModeNo <= 0x13) {
modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;
resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo;
CRT2Index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC;
VCLKIndexGEN = (SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)) >> 2) & 0x03;
VCLKIndexGENCRT = VCLKIndexGEN;
} else {
modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag;
resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO;
CRT2Index = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC;
VCLKIndexGEN = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK;
...
...
@@ -7434,7 +7432,7 @@ SiS_ShiftXPos(struct SiS_Private *SiS_Pr, int shift)
static void
SiS_SetGroup4_C_ELV(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
{
unsigned short temp, temp1
, resinfo = 0
;
unsigned short temp, temp1;
unsigned char *ROMAddr = SiS_Pr->VirtualRomBase;
if(!(SiS_Pr->SiS_VBType & VB_SIS30xCLV)) return;
...
...
@@ -7446,10 +7444,6 @@ SiS_SetGroup4_C_ELV(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned
if(!(ROMAddr[0x61] & 0x04)) return;
}
if(ModeNo > 0x13) {
resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO;
}
SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x3a,0x08);
temp = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x3a);
if(!(temp & 0x01)) {
...
...
src/sis310_accel.c
View file @
413dfdfc
...
...
@@ -1874,7 +1874,7 @@ SiSUploadToScratch(PixmapPtr pSrc, PixmapPtr pDst)
SISPtr
pSiS
=
SISPTR
(
pScrn
);
unsigned
char
*
src
,
*
dst
;
int
src_pitch
=
exaGetPixmapPitch
(
pSrc
);
int
dst_pitch
,
size
,
w
,
h
,
bytes
;
int
dst_pitch
,
size
,
w
,
h
;
w
=
pSrc
->
drawable
.
width
;
...
...
@@ -1907,8 +1907,6 @@ SiSUploadToScratch(PixmapPtr pSrc, PixmapPtr pDst)
src_pitch
=
exaGetPixmapPitch
(
pSrc
);
dst
=
pDst
->
devPrivate
.
ptr
;
bytes
=
(
src_pitch
<
dst_pitch
)
?
src_pitch
:
dst_pitch
;
h
=
pSrc
->
drawable
.
height
;
(
pSiS
->
SyncAccel
)(
pScrn
);
...
...
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