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
9c3f7b60
Commit
9c3f7b60
authored
Mar 01, 2017
by
John Kessenich
Committed by
GitHub
Mar 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #746 from dgkoch/dgkoch_build_fixes
Fix build warnings on some platforms
parents
efeefd98
197082ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Pp.cpp
glslang/MachineIndependent/preprocessor/Pp.cpp
+1
-1
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+2
-2
No files found.
glslang/MachineIndependent/preprocessor/Pp.cpp
View file @
9c3f7b60
...
@@ -1052,7 +1052,7 @@ int TPpContext::tMacroInput::scan(TPpToken* ppToken)
...
@@ -1052,7 +1052,7 @@ int TPpContext::tMacroInput::scan(TPpToken* ppToken)
// TODO: preprocessor: properly handle whitespace (or lack of it) between tokens when expanding
// TODO: preprocessor: properly handle whitespace (or lack of it) between tokens when expanding
if
(
token
==
PpAtomIdentifier
)
{
if
(
token
==
PpAtomIdentifier
)
{
int
i
;
int
i
;
for
(
i
=
mac
->
args
.
size
()
-
1
;
i
>=
0
;
i
--
)
for
(
i
=
(
int
)
mac
->
args
.
size
()
-
1
;
i
>=
0
;
i
--
)
if
(
strcmp
(
pp
->
atomStrings
.
getString
(
mac
->
args
[
i
]),
ppToken
->
name
)
==
0
)
if
(
strcmp
(
pp
->
atomStrings
.
getString
(
mac
->
args
[
i
]),
ppToken
->
name
)
==
0
)
break
;
break
;
if
(
i
>=
0
)
{
if
(
i
>=
0
)
{
...
...
hlsl/hlslParseHelper.cpp
View file @
9c3f7b60
...
@@ -2452,7 +2452,7 @@ void HlslParseContext::decomposeStructBufferMethods(const TSourceLoc& loc, TInte
...
@@ -2452,7 +2452,7 @@ void HlslParseContext::decomposeStructBufferMethods(const TSourceLoc& loc, TInte
case
EOpMethodGetDimensions
:
case
EOpMethodGetDimensions
:
{
{
const
int
numArgs
=
argAggregate
->
getSequence
().
size
();
const
int
numArgs
=
(
int
)
argAggregate
->
getSequence
().
size
();
TIntermTyped
*
argNumItems
=
argAggregate
->
getSequence
()[
1
]
->
getAsTyped
();
// out num items
TIntermTyped
*
argNumItems
=
argAggregate
->
getSequence
()[
1
]
->
getAsTyped
();
// out num items
TIntermTyped
*
argStride
=
numArgs
>
2
?
argAggregate
->
getSequence
()[
2
]
->
getAsTyped
()
:
nullptr
;
// out stride
TIntermTyped
*
argStride
=
numArgs
>
2
?
argAggregate
->
getSequence
()[
2
]
->
getAsTyped
()
:
nullptr
;
// out stride
...
@@ -3754,7 +3754,7 @@ TIntermTyped* HlslParseContext::handleFunctionCall(const TSourceLoc& loc, TFunct
...
@@ -3754,7 +3754,7 @@ TIntermTyped* HlslParseContext::handleFunctionCall(const TSourceLoc& loc, TFunct
// Find it in the symbol table.
// Find it in the symbol table.
//
//
const
TFunction
*
fnCandidate
=
nullptr
;
const
TFunction
*
fnCandidate
=
nullptr
;
bool
builtIn
;
bool
builtIn
=
false
;
// TODO: this needs improvement: there's no way at present to look up a signature in
// TODO: this needs improvement: there's no way at present to look up a signature in
// the symbol table for an arbitrary type. This is a temporary hack until that ability exists.
// the symbol table for an arbitrary type. This is a temporary hack until that ability exists.
...
...
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