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
f0a85fc7
Commit
f0a85fc7
authored
Oct 18, 2019
by
Timo Suoranta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for gcc 9 / -Werror=deprecated-copy
Also enable -Werror-deprecated-copy for GCC version 9 and later.
parent
834ee546
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
CMakeLists.txt
CMakeLists.txt
+3
-0
SpvBuilder.h
SPIRV/SpvBuilder.h
+1
-1
ConstantUnion.h
glslang/Include/ConstantUnion.h
+1
-1
iomapper.cpp
glslang/MachineIndependent/iomapper.cpp
+6
-6
No files found.
CMakeLists.txt
View file @
f0a85fc7
...
@@ -95,6 +95,9 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
...
@@ -95,6 +95,9 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
-Wunused-parameter -Wunused-value -Wunused-variable -Wunused-but-set-parameter -Wunused-but-set-variable -fno-exceptions
)
-Wunused-parameter -Wunused-value -Wunused-variable -Wunused-but-set-parameter -Wunused-but-set-variable -fno-exceptions
)
add_compile_options
(
-Wno-reorder
)
# disable this from -Wall, since it happens all over.
add_compile_options
(
-Wno-reorder
)
# disable this from -Wall, since it happens all over.
add_compile_options
(
-fno-rtti
)
add_compile_options
(
-fno-rtti
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL
"9.0.0"
)
add_compile_options
(
-Werror=deprecated-copy
)
endif
()
elseif
(
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"Clang"
)
elseif
(
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"Clang"
)
add_compile_options
(
-Wall -Wuninitialized -Wunused -Wunused-local-typedefs
add_compile_options
(
-Wall -Wuninitialized -Wunused -Wunused-local-typedefs
-Wunused-parameter -Wunused-value -Wunused-variable
)
-Wunused-parameter -Wunused-value -Wunused-variable
)
...
...
SPIRV/SpvBuilder.h
View file @
f0a85fc7
...
@@ -512,7 +512,7 @@ public:
...
@@ -512,7 +512,7 @@ public:
Block
&
head
,
&
body
,
&
merge
,
&
continue_target
;
Block
&
head
,
&
body
,
&
merge
,
&
continue_target
;
private
:
private
:
LoopBlocks
();
LoopBlocks
();
LoopBlocks
&
operator
=
(
const
LoopBlocks
&
);
LoopBlocks
&
operator
=
(
const
LoopBlocks
&
)
=
delete
;
};
};
// Start a new loop and prepare the builder to generate code for it. Until
// Start a new loop and prepare the builder to generate code for it. Until
...
...
glslang/Include/ConstantUnion.h
View file @
f0a85fc7
...
@@ -921,7 +921,7 @@ public:
...
@@ -921,7 +921,7 @@ public:
else
else
unionArray
=
new
TConstUnionVector
(
size
);
unionArray
=
new
TConstUnionVector
(
size
);
}
}
TConstUnionArray
(
const
TConstUnionArray
&
a
)
:
unionArray
(
a
.
unionArray
)
{
}
TConstUnionArray
(
const
TConstUnionArray
&
a
)
=
default
;
TConstUnionArray
(
const
TConstUnionArray
&
a
,
int
start
,
int
size
)
TConstUnionArray
(
const
TConstUnionArray
&
a
,
int
start
,
int
size
)
{
{
unionArray
=
new
TConstUnionVector
(
size
);
unionArray
=
new
TConstUnionVector
(
size
);
...
...
glslang/MachineIndependent/iomapper.cpp
View file @
f0a85fc7
...
@@ -161,7 +161,7 @@ struct TNotifyUniformAdaptor
...
@@ -161,7 +161,7 @@ struct TNotifyUniformAdaptor
}
}
private
:
private
:
TNotifyUniformAdaptor
&
operator
=
(
TNotifyUniformAdaptor
&
);
TNotifyUniformAdaptor
&
operator
=
(
TNotifyUniformAdaptor
&
)
=
delete
;
};
};
struct
TNotifyInOutAdaptor
struct
TNotifyInOutAdaptor
...
@@ -180,7 +180,7 @@ struct TNotifyInOutAdaptor
...
@@ -180,7 +180,7 @@ struct TNotifyInOutAdaptor
}
}
private
:
private
:
TNotifyInOutAdaptor
&
operator
=
(
TNotifyInOutAdaptor
&
);
TNotifyInOutAdaptor
&
operator
=
(
TNotifyInOutAdaptor
&
)
=
delete
;
};
};
struct
TResolverUniformAdaptor
{
struct
TResolverUniformAdaptor
{
...
@@ -236,7 +236,7 @@ struct TResolverUniformAdaptor {
...
@@ -236,7 +236,7 @@ struct TResolverUniformAdaptor {
bool
&
error
;
bool
&
error
;
private
:
private
:
TResolverUniformAdaptor
&
operator
=
(
TResolverUniformAdaptor
&
);
TResolverUniformAdaptor
&
operator
=
(
TResolverUniformAdaptor
&
)
=
delete
;
};
};
struct
TResolverInOutAdaptor
{
struct
TResolverInOutAdaptor
{
...
@@ -283,7 +283,7 @@ struct TResolverInOutAdaptor {
...
@@ -283,7 +283,7 @@ struct TResolverInOutAdaptor {
bool
&
error
;
bool
&
error
;
private
:
private
:
TResolverInOutAdaptor
&
operator
=
(
TResolverInOutAdaptor
&
);
TResolverInOutAdaptor
&
operator
=
(
TResolverInOutAdaptor
&
)
=
delete
;
};
};
// The class is used for reserving explicit uniform locations and ubo/ssbo/opaque bindings
// The class is used for reserving explicit uniform locations and ubo/ssbo/opaque bindings
...
@@ -384,7 +384,7 @@ struct TSymbolValidater
...
@@ -384,7 +384,7 @@ struct TSymbolValidater
bool
&
hadError
;
bool
&
hadError
;
private
:
private
:
TSymbolValidater
&
operator
=
(
TSymbolValidater
&
);
TSymbolValidater
&
operator
=
(
TSymbolValidater
&
)
=
delete
;
};
};
struct
TSlotCollector
{
struct
TSlotCollector
{
...
@@ -398,7 +398,7 @@ struct TSlotCollector {
...
@@ -398,7 +398,7 @@ struct TSlotCollector {
TInfoSink
&
infoSink
;
TInfoSink
&
infoSink
;
private
:
private
:
TSlotCollector
&
operator
=
(
TSlotCollector
&
);
TSlotCollector
&
operator
=
(
TSlotCollector
&
)
=
delete
;
};
};
TDefaultIoResolverBase
::
TDefaultIoResolverBase
(
const
TIntermediate
&
intermediate
)
TDefaultIoResolverBase
::
TDefaultIoResolverBase
(
const
TIntermediate
&
intermediate
)
...
...
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