[Bf-blender-cvs] [588791df637] master: Fix compilation error after recent DNA changes

Sergey Sharybin noreply at git.blender.org
Tue Aug 2 14:16:46 CEST 2022


Commit: 588791df637a078aae20250022bc5fcd1fc07d1a
Author: Sergey Sharybin
Date:   Tue Aug 2 14:15:23 2022 +0200
Branches: master
https://developer.blender.org/rB588791df637a078aae20250022bc5fcd1fc07d1a

Fix compilation error after recent DNA changes

Apparently, Clang allows to specify underlying enum type in C
but onot GCC. The latter one is actually closer to the standard.

===================================================================

M	source/blender/makesdna/DNA_ID.h

===================================================================

diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index 7ba2b426fcf..0dc7d75e744 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -763,7 +763,7 @@ enum {
 };
 
 /* Tag given ID for an update in all the dependency graphs. */
-typedef enum IDRecalcFlag : unsigned int {
+typedef enum IDRecalcFlag {
   /***************************************************************************
    * Individual update tags, this is what ID gets tagged for update with. */



More information about the Bf-blender-cvs mailing list