Skip to content

Commit

Permalink
VOXELFORMAT: disable shadowing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Sep 16, 2024
1 parent 36803a9 commit dda1dbf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/modules/voxelformat/private/aceofspades/AoSVXLFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@
#define libvxl_mem_realloc core_realloc
#define libvxl_mem_free core_free
extern "C" {
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#include "voxelformat/external/libvxl.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
}

namespace voxelformat {
Expand Down

0 comments on commit dda1dbf

Please sign in to comment.