GCC 9.2 Support 21/221821/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 7 Jan 2020 16:16:15 +0000 (16:16 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 7 Jan 2020 16:16:15 +0000 (16:16 +0000)
Change-Id: I40fd353eac0a66d4000d4c94e254b4cd02670140

build/tizen/CMakeLists.txt
dali-toolkit/internal/controls/scene3d-view/gltf-loader.cpp

index 691ed18..07344eb 100644 (file)
@@ -151,7 +151,7 @@ IF( NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
   ADD_COMPILE_OPTIONS( -Werror )
 ENDIF()
 
-ADD_COMPILE_OPTIONS( -Wall -Wno-unused-parameter -Wno-float-equal )
+ADD_COMPILE_OPTIONS( -Wall -Wno-unused-parameter -Wno-float-equal -Wno-class-memaccess )
 
 IF( ENABLE_COVERAGE OR "$ENV{CXXFLAGS}" MATCHES --coverage )
   ADD_COMPILE_OPTIONS( --coverage )
index 0f69edc..291b95f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -236,7 +236,7 @@ void FitBuffer( Dali::Vector<Vector4>& bufferDestination, Dali::Vector<T>& buffe
 template <typename T>
 bool ReadBinFile( Vector<T> &dataBuffer, std::string url, int32_t offset, int32_t count )
 {
-  Dali::FileStream fileStream( url, FileStream::READ || FileStream::BINARY );
+  Dali::FileStream fileStream( url, FileStream::READ | FileStream::BINARY );
   FILE* fp = fileStream.GetFile();
   if( !fp )
   {