Fixed more clang warnings
This commit is contained in:
@@ -62,7 +62,7 @@ if (UNIX)
|
|||||||
# add our standard flags for Template inclusion
|
# add our standard flags for Template inclusion
|
||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-DINCLUDE_TEMPLATES" )
|
list(APPEND ADDITIONAL_CXX_FLAGS "-DINCLUDE_TEMPLATES" )
|
||||||
list(APPEND ADDITIONAL_C_FLAGS "-DINCLUDE_TEMPLATES" )
|
list(APPEND ADDITIONAL_C_FLAGS "-DINCLUDE_TEMPLATES" )
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# OS Defines
|
# OS Defines
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -108,9 +108,10 @@ if (UNIX)
|
|||||||
list(APPEND ADDITIONAL_C_FLAGS ${COMPILER_WARNINGS} )
|
list(APPEND ADDITIONAL_C_FLAGS ${COMPILER_WARNINGS} )
|
||||||
|
|
||||||
|
|
||||||
if ("${CMAKE_CXX_COMPILER}" MATCHES ".*clang.*")
|
if ("${CMAKE_CXX_COMPILER}" MATCHES "Clang")
|
||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Weverything")
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Weverything")
|
||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-c++98-compat")
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-c++98-compat")
|
||||||
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-c++98-compat-pedantic")
|
||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-padded")
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-padded")
|
||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-old-style-cast")
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-old-style-cast")
|
||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-documentation-unknown-command")
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-documentation-unknown-command")
|
||||||
@@ -120,7 +121,7 @@ if (UNIX)
|
|||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-deprecated")
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-deprecated")
|
||||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-weak-vtables")
|
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-weak-vtables")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# STL Vector checks
|
# STL Vector checks
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|||||||
@@ -48,10 +48,7 @@
|
|||||||
//
|
//
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
#pragma once
|
||||||
#ifndef __BASEREADER_HH__
|
|
||||||
#define __BASEREADER_HH__
|
|
||||||
|
|
||||||
|
|
||||||
//=== INCLUDES ================================================================
|
//=== INCLUDES ================================================================
|
||||||
|
|
||||||
@@ -91,7 +88,7 @@ class OPENMESHDLLEXPORT BaseReader
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
/// Destructor
|
/// Destructor
|
||||||
virtual ~BaseReader() {};
|
virtual ~BaseReader() {}
|
||||||
|
|
||||||
/// Returns a brief description of the file type that can be parsed.
|
/// Returns a brief description of the file type that can be parsed.
|
||||||
virtual std::string get_description() const = 0;
|
virtual std::string get_description() const = 0;
|
||||||
@@ -204,5 +201,3 @@ static inline std::string &trim(std::string &_string) {
|
|||||||
} // namespace IO
|
} // namespace IO
|
||||||
} // namespace OpenMesh
|
} // namespace OpenMesh
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
#endif
|
|
||||||
//=============================================================================
|
|
||||||
|
|||||||
@@ -48,10 +48,7 @@
|
|||||||
//
|
//
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
#pragma once
|
||||||
#ifndef __OFFREADER_HH__
|
|
||||||
#define __OFFREADER_HH__
|
|
||||||
|
|
||||||
|
|
||||||
//=== INCLUDES ================================================================
|
//=== INCLUDES ================================================================
|
||||||
|
|
||||||
@@ -162,5 +159,3 @@ OPENMESHDLLEXPORT _OFFReader_& OFFReader();
|
|||||||
} // namespace IO
|
} // namespace IO
|
||||||
} // namespace OpenMesh
|
} // namespace OpenMesh
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
#endif
|
|
||||||
//=============================================================================
|
|
||||||
|
|||||||
@@ -48,10 +48,7 @@
|
|||||||
//
|
//
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
#pragma once
|
||||||
#ifndef __SINGLETON_HH__
|
|
||||||
#define __SINGLETON_HH__
|
|
||||||
|
|
||||||
|
|
||||||
//=== INCLUDES ================================================================
|
//=== INCLUDES ================================================================
|
||||||
|
|
||||||
@@ -145,5 +142,3 @@ private:
|
|||||||
# include "SingletonT_impl.hh"
|
# include "SingletonT_impl.hh"
|
||||||
#endif
|
#endif
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
#endif // __SINGLETON_HH__
|
|
||||||
//=============================================================================
|
|
||||||
|
|||||||
Reference in New Issue
Block a user