The C4100 warning is related to unused formal parameters in functions.
Enabling it better aligns with "-Wunused-parameter" option in other
compilers.
While suppressing it with `__pragma(warning(suppress:4100))` is not the
same as using `__attribute__((__unused__))` in GCC or Clang, it is
still preferable to use it over completely hiding the warning.
This ensures consistent warning behavior across compilers and improves
code quality by addressing unused function parameters.
(Note that some warnings in Windows-specific code have already been
silenced in 7fcb262dfd)
Pull Request: blender/blender#105534
38 lines
974 B
C
38 lines
974 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2007 Blender Foundation. All rights reserved. */
|
|
|
|
/** \file
|
|
* \ingroup pythonintern
|
|
*/
|
|
|
|
#include "BLI_utildefines.h"
|
|
|
|
#include "BPY_extern.h"
|
|
|
|
#if defined(__GNUC__) || defined(__clang__)
|
|
# pragma GCC diagnostic error "-Wmissing-prototypes"
|
|
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
|
#elif defined(_MSC_VER)
|
|
/* Suppress unreferenced formal parameter warning. */
|
|
# pragma warning(disable : 4100)
|
|
#endif
|
|
|
|
/* python, will come back */
|
|
// void BPY_script_exec(void) {}
|
|
// void BPY_python_start(void) {}
|
|
void BPY_pyconstraint_exec(struct bPythonConstraint *con,
|
|
struct bConstraintOb *cob,
|
|
struct ListBase *targets)
|
|
{
|
|
}
|
|
void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTarget *ct)
|
|
{
|
|
}
|
|
bool BPY_is_pyconstraint(struct Text *text)
|
|
{
|
|
return 0;
|
|
}
|
|
void BPY_pyconstraint_update(struct Object *owner, struct bConstraint *con)
|
|
{
|
|
}
|