Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
c11e95f6
Commit
c11e95f6
authored
Oct 26, 2015
by
Mark Adams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various build fixes when using newer GCC versions with warnings enabled
Encountered with GCC-4.7.3 in a build environment where warnings are enabled and treated as errors.
parent
fac0d1c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
disassemble.cpp
SPIRV/disassemble.cpp
+5
-5
SymbolTable.cpp
glslang/MachineIndependent/SymbolTable.cpp
+1
-1
No files found.
SPIRV/disassemble.cpp
View file @
c11e95f6
...
...
@@ -316,7 +316,7 @@ void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode,
nextNestedControl
=
0
;
}
}
else
if
(
opCode
==
OpExtInstImport
)
{
idDescriptor
[
resultId
]
=
(
char
*
)(
&
stream
[
word
]);
idDescriptor
[
resultId
]
=
(
c
onst
c
har
*
)(
&
stream
[
word
]);
}
else
{
if
(
idDescriptor
[
resultId
].
size
()
==
0
)
{
...
...
@@ -391,7 +391,7 @@ void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode,
disassembleIds
(
1
);
// Get names for printing "(XXX)" for readability, *after* this id
if
(
opCode
==
OpName
)
idDescriptor
[
stream
[
word
-
1
]]
=
(
char
*
)(
&
stream
[
word
]);
idDescriptor
[
stream
[
word
-
1
]]
=
(
c
onst
c
har
*
)(
&
stream
[
word
]);
break
;
case
OperandOptionalId
:
case
OperandVariableIds
:
...
...
@@ -404,8 +404,8 @@ void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode,
return
;
case
OperandOptionalLiteral
:
case
OperandVariableLiterals
:
if
(
opCode
==
OpDecorate
&&
stream
[
word
-
1
]
==
DecorationBuiltIn
||
opCode
==
OpMemberDecorate
&&
stream
[
word
-
1
]
==
DecorationBuiltIn
)
{
if
(
(
opCode
==
OpDecorate
&&
stream
[
word
-
1
]
==
DecorationBuiltIn
)
||
(
opCode
==
OpMemberDecorate
&&
stream
[
word
-
1
]
==
DecorationBuiltIn
)
)
{
out
<<
BuiltInString
(
stream
[
word
++
]);
--
numOperands
;
++
op
;
...
...
@@ -442,7 +442,7 @@ void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode,
disassembleImmediates
(
1
);
if
(
opCode
==
OpExtInst
)
{
ExtInstSet
extInstSet
=
GLSL450Inst
;
if
(
0
==
memcmp
(
"OpenCL"
,
(
char
*
)(
idDescriptor
[
stream
[
word
-
2
]].
c_str
()),
6
))
{
if
(
0
==
memcmp
(
"OpenCL"
,
(
c
onst
c
har
*
)(
idDescriptor
[
stream
[
word
-
2
]].
c_str
()),
6
))
{
extInstSet
=
OpenCLExtInst
;
}
unsigned
entrypoint
=
stream
[
word
-
1
];
...
...
glslang/MachineIndependent/SymbolTable.cpp
View file @
c11e95f6
...
...
@@ -242,7 +242,7 @@ TVariable::TVariable(const TVariable& copyOf) : TSymbol(copyOf)
userType
=
copyOf
.
userType
;
numExtensions
=
0
;
extensions
=
0
;
if
(
copyOf
.
numExtensions
>
0
)
if
(
copyOf
.
numExtensions
!=
0
)
setExtensions
(
copyOf
.
numExtensions
,
copyOf
.
extensions
);
if
(
!
copyOf
.
unionArray
.
empty
())
{
...
...
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