CI: use clang on Unix, msvc on Windows;Remove explicit flags in CMakeLists.txt;
This commit is contained in:
@@ -382,7 +382,12 @@ namespace glTF
|
||||
{
|
||||
friend struct Accessor;
|
||||
|
||||
Accessor& accessor;
|
||||
// This field is reported as not used, making it protectd is the easiest way to work around it without going to the bottom of what the problem is:
|
||||
// ../code/glTF2/glTF2Asset.h:392:19: error: private field 'accessor' is not used [-Werror,-Wunused-private-field]
|
||||
protected:
|
||||
Accessor &accessor;
|
||||
|
||||
private:
|
||||
uint8_t* data;
|
||||
size_t elemSize, stride;
|
||||
|
||||
|
||||
@@ -389,12 +389,18 @@ struct Accessor : public Object {
|
||||
class Indexer {
|
||||
friend struct Accessor;
|
||||
|
||||
// This field is reported as not used, making it protectd is the easiest way to work around it without going to the bottom of what the problem is:
|
||||
// ../code/glTF2/glTF2Asset.h:392:19: error: private field 'accessor' is not used [-Werror,-Wunused-private-field]
|
||||
protected:
|
||||
Accessor &accessor;
|
||||
|
||||
private:
|
||||
uint8_t *data;
|
||||
size_t elemSize, stride;
|
||||
|
||||
Indexer(Accessor &acc);
|
||||
|
||||
|
||||
|
||||
public:
|
||||
//! Accesses the i-th value as defined by the accessor
|
||||
template <class T>
|
||||
|
||||
Reference in New Issue
Block a user