Fix -Wunused-variable under FUZZING_BUILD_MODE...
Fuzzing build modes (FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) doesn't necessarily imply that assert() is enabled, according to the manual. When the current do-nothing is expanded under -Wunused-variable (-Wall), it results in unused variables in some of the FUZZING_BUILD_MODE... blocks. This patch extends the do-nothing to avoid the unused variable.
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ extern "C" {
|
|||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
#else
|
#else
|
||||||
# ifndef assert /* assert may be already defined, due to prior #include <assert.h> */
|
# ifndef assert /* assert may be already defined, due to prior #include <assert.h> */
|
||||||
# define assert(condition) ((void)0) /* disable assert (default) */
|
# define assert(condition) ((void) (condition)) /* disable assert (default) */
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user