File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 246
246
#define TOOLCHAIN_WARNING_UNUSED_VARIABLE
247
247
#endif
248
248
249
+ /**
250
+ * @def TOOLCHAIN_WARNING_CAST_QUAL
251
+ * @brief Toolchain-specific warning for pointer casts removing a type qualifier.
252
+ *
253
+ * Use this as an argument to the @ref TOOLCHAIN_DISABLE_WARNING and
254
+ * @ref TOOLCHAIN_ENABLE_WARNING family of macros.
255
+ */
256
+ #ifndef TOOLCHAIN_WARNING_CAST_QUAL
257
+ #define TOOLCHAIN_WARNING_CAST_QUAL
258
+ #endif
259
+
249
260
/**
250
261
* @def TOOLCHAIN_DISABLE_WARNING
251
262
* @brief Disable the specified compiler warning for all compilers.
Original file line number Diff line number Diff line change @@ -684,6 +684,7 @@ do { \
684
684
#define TOOLCHAIN_WARNING_SHADOW " -Wshadow"
685
685
#define TOOLCHAIN_WARNING_UNUSED_LABEL " -Wunused-label"
686
686
#define TOOLCHAIN_WARNING_UNUSED_VARIABLE " -Wunused-variable"
687
+ #define TOOLCHAIN_WARNING_CAST_QUAL " -Wcast-qual"
687
688
688
689
/* GCC-specific warnings that aren't in clang. */
689
690
#if defined(__GNUC__) && !defined(__clang__)
You can’t perform that action at this time.
0 commit comments