Browse Source

Fix warning related to format-non-iso.

Signed-off-by: Jackie9527 <[email protected]>
Jackie9527 2 years ago
parent
commit
94067994cc
2 changed files with 1 additions and 2 deletions
  1. 0 1
      code/CMakeLists.txt
  2. 1 1
      include/assimp/StringUtils.h

+ 0 - 1
code/CMakeLists.txt

@@ -1246,7 +1246,6 @@ IF (ASSIMP_WARNINGS_AS_ERRORS)
         -Wno-deprecated-copy-with-dtor
         -Wno-deprecated
         -Wno-format-nonliteral
-        -Wno-format-non-iso
         -Wno-comma
         -Wno-unreachable-code-break
         -Wno-unreachable-code-return

+ 1 - 1
include/assimp/StringUtils.h

@@ -56,7 +56,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <sstream>
 #include <iomanip>
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(__clang__)
 #define AI_SIZEFMT "%Iu"
 #else
 #define AI_SIZEFMT "%zu"