Cycles: Fix strict -Wpedantic warnings with GCC

Patch by Stefan Werner, thanks!
This commit is contained in:
Sergey Sharybin
2017-03-06 14:16:45 +01:00
parent b498db06eb
commit 0e995e0bfe
9 changed files with 13 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ class Shader;
class Background : public Node {
public:
NODE_DECLARE;
NODE_DECLARE
float ao_factor;
float ao_distance;

View File

@@ -39,7 +39,7 @@ class Scene;
class Camera : public Node {
public:
NODE_DECLARE;
NODE_DECLARE
/* Specifies an offset for the shutter's time interval. */
enum MotionPosition {

View File

@@ -53,7 +53,7 @@ public:
class Film : public Node {
public:
NODE_DECLARE;
NODE_DECLARE
float exposure;
array<Pass> passes;

View File

@@ -201,14 +201,14 @@ public:
/* Node definition utility macros */
#define SHADER_NODE_CLASS(type) \
NODE_DECLARE; \
NODE_DECLARE \
type(); \
virtual ShaderNode *clone() const { return new type(*this); } \
virtual void compile(SVMCompiler& compiler); \
virtual void compile(OSLCompiler& compiler); \
#define SHADER_NODE_NO_CLONE_CLASS(type) \
NODE_DECLARE; \
NODE_DECLARE \
type(); \
virtual void compile(SVMCompiler& compiler); \
virtual void compile(OSLCompiler& compiler); \

View File

@@ -29,7 +29,7 @@ class Scene;
class Integrator : public Node {
public:
NODE_DECLARE;
NODE_DECLARE
int min_bounce;
int max_bounce;

View File

@@ -48,7 +48,7 @@ struct PackedPatchTable;
class Mesh : public Node {
public:
NODE_DECLARE;
NODE_DECLARE
/* Mesh Triangle */
struct Triangle {

View File

@@ -40,7 +40,7 @@ struct Transform;
class Object : public Node {
public:
NODE_DECLARE;
NODE_DECLARE
Mesh *mesh;
Transform tfm;

View File

@@ -82,7 +82,7 @@ enum DisplacementMethod {
class Shader : public Node {
public:
NODE_DECLARE;
NODE_DECLARE
int pass_id;

View File

@@ -514,12 +514,12 @@ ccl_device_inline float len3(const ssef& a)
/* faster version for SSSE3 */
typedef ssei shuffle_swap_t;
ccl_device_inline const shuffle_swap_t shuffle_swap_identity(void)
ccl_device_inline shuffle_swap_t shuffle_swap_identity(void)
{
return _mm_set_epi8(15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0);
}
ccl_device_inline const shuffle_swap_t shuffle_swap_swap(void)
ccl_device_inline shuffle_swap_t shuffle_swap_swap(void)
{
return _mm_set_epi8(7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8);
}
@@ -534,12 +534,12 @@ ccl_device_inline const ssef shuffle_swap(const ssef& a, const shuffle_swap_t& s
/* somewhat slower version for SSE2 */
typedef int shuffle_swap_t;
ccl_device_inline const shuffle_swap_t shuffle_swap_identity(void)
ccl_device_inline shuffle_swap_t shuffle_swap_identity(void)
{
return 0;
}
ccl_device_inline const shuffle_swap_t shuffle_swap_swap(void)
ccl_device_inline shuffle_swap_t shuffle_swap_swap(void)
{
return 1;
}