Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-09-06 11:57:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-06 11:58:46 +0300
commit49f1695ed06792ea1f4d1a43d30170c407f227f8 (patch)
treef022e9269ce206957903a73113c6891c9c40d997 /source/blender/makesrna/intern/rna_access.c
parent81978594a89a2e53c3d6626f51dfa85e94d6811d (diff)
BLI_utildefines: add UNUSED_FUNCTION_WITH_RETURN_TYPE
Unfortunately the UNUSED_FUNCTION macro doesn't work for pointer types. Add UNUSED_FUNCTION_WITH_RETURN_TYPE to workaround this limitation.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index effc56b15c5..fceb6d045c3 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -5523,7 +5523,7 @@ char *RNA_path_append(
/* Having both path append & back seems like it could be useful,
* this function isn't used at the moment. */
-static char *UNUSED_FUNCTION(RNA_path_back)(const char *path)
+static UNUSED_FUNCTION_WITH_RETURN_TYPE(char *, RNA_path_back)(const char *path)
{
char fixedbuf[256];
const char *previous, *current;