Fixed more clang warnings
This commit is contained in:
@@ -108,9 +108,10 @@ if (UNIX)
|
||||
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 "-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-old-style-cast")
|
||||
list(APPEND ADDITIONAL_CXX_FLAGS "-Wno-documentation-unknown-command")
|
||||
|
||||
@@ -48,10 +48,7 @@
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
|
||||
#ifndef __BASEREADER_HH__
|
||||
#define __BASEREADER_HH__
|
||||
|
||||
#pragma once
|
||||
|
||||
//=== INCLUDES ================================================================
|
||||
|
||||
@@ -91,7 +88,7 @@ class OPENMESHDLLEXPORT BaseReader
|
||||
public:
|
||||
|
||||
/// Destructor
|
||||
virtual ~BaseReader() {};
|
||||
virtual ~BaseReader() {}
|
||||
|
||||
/// Returns a brief description of the file type that can be parsed.
|
||||
virtual std::string get_description() const = 0;
|
||||
@@ -204,5 +201,3 @@ static inline std::string &trim(std::string &_string) {
|
||||
} // namespace IO
|
||||
} // namespace OpenMesh
|
||||
//=============================================================================
|
||||
#endif
|
||||
//=============================================================================
|
||||
|
||||
@@ -48,10 +48,7 @@
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
|
||||
#ifndef __OFFREADER_HH__
|
||||
#define __OFFREADER_HH__
|
||||
|
||||
#pragma once
|
||||
|
||||
//=== INCLUDES ================================================================
|
||||
|
||||
@@ -162,5 +159,3 @@ OPENMESHDLLEXPORT _OFFReader_& OFFReader();
|
||||
} // namespace IO
|
||||
} // namespace OpenMesh
|
||||
//=============================================================================
|
||||
#endif
|
||||
//=============================================================================
|
||||
|
||||
@@ -48,10 +48,7 @@
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
|
||||
#ifndef __SINGLETON_HH__
|
||||
#define __SINGLETON_HH__
|
||||
|
||||
#pragma once
|
||||
|
||||
//=== INCLUDES ================================================================
|
||||
|
||||
@@ -145,5 +142,3 @@ private:
|
||||
# include "SingletonT_impl.hh"
|
||||
#endif
|
||||
//=============================================================================
|
||||
#endif // __SINGLETON_HH__
|
||||
//=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user