Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
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
angle
Commits
4a02078a
Commit
4a02078a
authored
May 17, 2012
by
alokp@chromium.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compile warnings on linux.
git-svn-id:
https://angleproject.googlecode.com/svn/trunk@1090
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
964b7194
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
translator.cpp
samples/translator/translator.cpp
+3
-3
No files found.
samples/translator/translator.cpp
View file @
4a02078a
...
@@ -26,7 +26,7 @@ enum TFailCode {
...
@@ -26,7 +26,7 @@ enum TFailCode {
static
void
usage
();
static
void
usage
();
static
ShShaderType
FindShaderType
(
const
char
*
fileName
);
static
ShShaderType
FindShaderType
(
const
char
*
fileName
);
static
bool
CompileFile
(
char
*
fileName
,
ShHandle
compiler
,
int
compileOptions
);
static
bool
CompileFile
(
char
*
fileName
,
ShHandle
compiler
,
int
compileOptions
);
static
void
LogMsg
(
char
*
msg
,
const
char
*
name
,
const
int
num
,
const
char
*
logName
);
static
void
LogMsg
(
c
onst
c
har
*
msg
,
const
char
*
name
,
const
int
num
,
const
char
*
logName
);
static
void
PrintActiveVariables
(
ShHandle
compiler
,
ShShaderInfo
varType
,
bool
mapLongVariableNames
);
static
void
PrintActiveVariables
(
ShHandle
compiler
,
ShShaderInfo
varType
,
bool
mapLongVariableNames
);
// If NUM_SOURCE_STRINGS is set to a value > 1, the input file data is
// If NUM_SOURCE_STRINGS is set to a value > 1, the input file data is
...
@@ -243,7 +243,7 @@ bool CompileFile(char* fileName, ShHandle compiler, int compileOptions)
...
@@ -243,7 +243,7 @@ bool CompileFile(char* fileName, ShHandle compiler, int compileOptions)
return
ret
?
true
:
false
;
return
ret
?
true
:
false
;
}
}
void
LogMsg
(
char
*
msg
,
const
char
*
name
,
const
int
num
,
const
char
*
logName
)
void
LogMsg
(
c
onst
c
har
*
msg
,
const
char
*
name
,
const
int
num
,
const
char
*
logName
)
{
{
printf
(
"#### %s %s %d %s ####
\n
"
,
msg
,
name
,
num
,
logName
);
printf
(
"#### %s %s %d %s ####
\n
"
,
msg
,
name
,
num
,
logName
);
}
}
...
@@ -272,7 +272,7 @@ void PrintActiveVariables(ShHandle compiler, ShShaderInfo varType, bool mapLongV
...
@@ -272,7 +272,7 @@ void PrintActiveVariables(ShHandle compiler, ShShaderInfo varType, bool mapLongV
int
activeVars
=
0
,
size
=
0
;
int
activeVars
=
0
,
size
=
0
;
ShDataType
type
=
SH_NONE
;
ShDataType
type
=
SH_NONE
;
char
*
typeName
=
NULL
;
c
onst
c
har
*
typeName
=
NULL
;
ShGetInfo
(
compiler
,
varType
,
&
activeVars
);
ShGetInfo
(
compiler
,
varType
,
&
activeVars
);
for
(
int
i
=
0
;
i
<
activeVars
;
++
i
)
{
for
(
int
i
=
0
;
i
<
activeVars
;
++
i
)
{
switch
(
varType
)
{
switch
(
varType
)
{
...
...
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