Cleanup: compiler warnings

This commit is contained in:
Brecht Van Lommel 2020-08-12 12:15:01 +02:00
parent 1f8cb90828
commit d6570fcaed
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
# define ABORT_PREDICATE ::testing::KilledBySignal(SIGABRT)
#endif
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
/* Disable since it's the purpose of this test. */
# pragma GCC diagnostic ignored "-Walloc-size-larger-than="
#endif

View File

@ -127,7 +127,7 @@ Relation *DepsgraphRelationBuilder::add_node_handle_relation(const KeyType &key_
return nullptr;
}
static bool rigidbody_object_depends_on_evaluated_geometry(const RigidBodyOb *rbo)
static inline bool rigidbody_object_depends_on_evaluated_geometry(const RigidBodyOb *rbo)
{
if (rbo == nullptr) {
return false;