forked from bartvdbraak/blender
Code Cleanup: warnings
This commit is contained in:
parent
a5183d7a87
commit
d4a11388bf
@ -2058,6 +2058,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS C_WARN_NO_UNUSED_MACROS -Wno-unused-macros)
|
||||
|
||||
ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS C_WARN_NO_MISSING_VARIABLE_DECLARATIONS -Wno-missing-variable-declarations)
|
||||
ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS C_WARN_NO_INCOMPAT_PTR_DISCARD_QUAL -Wno-incompatible-pointer-types-discards-qualifiers)
|
||||
ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS C_WARN_NO_UNUSED_FUNCTION -Wno-unused-function)
|
||||
ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS C_WARN_NO_INT_TO_VOID_POINTER_CAST -Wno-int-to-void-pointer-cast)
|
||||
ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS C_WARN_NO_MISSING_PROTOTYPES -Wno-missing-prototypes)
|
||||
|
@ -309,8 +309,6 @@ static void bm_edge_update_beauty_cost_single(BMEdge *e, Heap *eheap, HeapNode *
|
||||
|
||||
/* check if we can add it back */
|
||||
BLI_assert(BM_edge_is_manifold(e) == true);
|
||||
//BLI_assert(BMO_elem_flag_test(bm, e->l->f, FACE_MARK) &&
|
||||
// BMO_elem_flag_test(bm, e->l->radial_next->f, FACE_MARK));
|
||||
|
||||
/* check we're not moving back into a state we have been in before */
|
||||
if (e_state_set != NULL) {
|
||||
@ -354,9 +352,6 @@ static void bm_edge_update_beauty_cost(BMEdge *e, Heap *eheap, HeapNode **eheap_
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* Beautify Fill */
|
||||
|
||||
#define ELE_NEW 1
|
||||
#define FACE_MARK 2
|
||||
|
||||
/**
|
||||
* \note All edges in \a edge_array must be tagged and
|
||||
* have their index values set according to their position in the array.
|
||||
|
@ -102,11 +102,11 @@ public:
|
||||
}
|
||||
|
||||
virtual void *initializeTileData(rcti *rect) { return 0; }
|
||||
virtual void deinitializeTileData(rcti *rect, void *data) {
|
||||
}
|
||||
|
||||
virtual MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) { return 0; }
|
||||
virtual void deinitializeTileData(rcti *rect, void *data) {}
|
||||
|
||||
virtual ~SocketReader() {}
|
||||
|
||||
virtual MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) { return 0; }
|
||||
|
||||
inline const unsigned int getWidth() const { return this->m_width; }
|
||||
inline const unsigned int getHeight() const { return this->m_height; }
|
||||
|
@ -77,9 +77,9 @@ static bool g_openclInitialized = false;
|
||||
#define MAX_HIGHLIGHT 8
|
||||
static bool g_highlightInitialized = false;
|
||||
extern "C" {
|
||||
int g_highlightIndex;
|
||||
void **g_highlightedNodes;
|
||||
void **g_highlightedNodesRead;
|
||||
static int g_highlightIndex;
|
||||
static void **g_highlightedNodes;
|
||||
static void **g_highlightedNodesRead;
|
||||
|
||||
#if COM_CURRENT_THREADING_MODEL == COM_TM_QUEUE
|
||||
#define HIGHLIGHT(wp) \
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
|
||||
vector<DistortionCache *> s_cache;
|
||||
static vector<DistortionCache *> s_cache;
|
||||
|
||||
void deintializeDistortionCache(void)
|
||||
{
|
||||
|
@ -1229,7 +1229,7 @@ void RAS_OpenGLRasterizer::RemoveLight(struct RAS_LightObject* lightobject)
|
||||
m_lights.erase(lit);
|
||||
}
|
||||
|
||||
bool RAS_OpenGLRasterizer::RayHit(class KX_ClientObjectInfo *client, KX_RayCast *result, void * const data)
|
||||
bool RAS_OpenGLRasterizer::RayHit(struct KX_ClientObjectInfo *client, KX_RayCast *result, void * const data)
|
||||
{
|
||||
double* const oglmatrix = (double* const) data;
|
||||
|
||||
|
@ -380,8 +380,8 @@ public:
|
||||
void PushMatrix();
|
||||
void PopMatrix();
|
||||
|
||||
bool RayHit(class KX_ClientObjectInfo* client, class KX_RayCast* result, void * const data);
|
||||
bool NeedRayCast(class KX_ClientObjectInfo*) { return true; }
|
||||
bool RayHit(struct KX_ClientObjectInfo* client, class KX_RayCast* result, void * const data);
|
||||
bool NeedRayCast(struct KX_ClientObjectInfo*) { return true; }
|
||||
|
||||
|
||||
void AddLight(struct RAS_LightObject* lightobject);
|
||||
|
Loading…
Reference in New Issue
Block a user