Turned off clang warnings in third party includes.
The latest clang compiler (at least the one in Xcode 9.4.1) warns about the register keyword and macro expansions using defined(). Since these warnings come from third party code, we can't address them directly in Blender. Silencing them via #pramgas will at least keep the warnings during a build down to the ones that are relevant to Blender code.
This commit is contained in:
parent
8a7f317666
commit
d53093953f
Notes:
blender-bot
2023-02-14 05:40:53 +01:00
Referenced by commit 73eb1bfd55
, Revert "Turned off clang warnings in third party includes."
Referenced by issue #55672, Boolean - Animation - Viewport works correctly render view doesnt
Referenced by issue #55632, Scaling back to 1 and transforming back to 1 (x, y, z altogether) multiple objects via properties->object->tranform panel gives incorrect result
Referenced by issue #55626, Cycles - Motion blur seems to be additive when rendering animations
|
@ -21,7 +21,10 @@
|
|||
#ifdef WITH_OSL
|
||||
/* So no context pollution happens from indirectly included windows.h */
|
||||
# include "util/util_windows.h"
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
# include <OSL/oslexec.h>
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#include "device/device.h"
|
||||
|
|
|
@ -30,8 +30,12 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
#pragma clang diagnostic ignored "-Wexpansion-to-defined"
|
||||
#include <OSL/genclosure.h>
|
||||
#include <OSL/oslclosure.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#include "kernel/osl/osl_closures.h"
|
||||
#include "kernel/osl/osl_shader.h"
|
||||
|
|
|
@ -14,7 +14,10 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
#include <OSL/oslexec.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#include "kernel/kernel_compat_cpu.h"
|
||||
#include "kernel/kernel_montecarlo.h"
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
#ifdef WITH_OSL
|
||||
/* So no context pollution happens from indirectly included windows.h */
|
||||
# include "util/util_windows.h"
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
# include <OSL/oslexec.h>
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#include "render/attribute.h"
|
||||
|
|
|
@ -19,7 +19,11 @@
|
|||
|
||||
/* OpenImageIO is used for all image file reading and writing. */
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
#pragma clang diagnostic ignored "-Wexpansion-to-defined"
|
||||
#include <OpenImageIO/imageio.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#include "util/util_vector.h"
|
||||
|
||||
|
|
|
@ -20,9 +20,13 @@
|
|||
/* Parameter value lists from OpenImageIO are used to store custom properties
|
||||
* on various data, which can then later be used in shaders. */
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
#pragma clang diagnostic ignored "-Wexpansion-to-defined"
|
||||
#include <OpenImageIO/paramlist.h>
|
||||
#include <OpenImageIO/typedesc.h>
|
||||
#include <OpenImageIO/ustring.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
|
|
|
@ -40,6 +40,9 @@
|
|||
#include <algorithm>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
#include <half.h>
|
||||
#include <Iex.h>
|
||||
#include <ImfVersion.h>
|
||||
|
@ -64,6 +67,7 @@
|
|||
#include <ImfTiledOutputPart.h>
|
||||
#include <ImfPartType.h>
|
||||
#include <ImfPartHelper.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#include "DNA_scene_types.h" /* For OpenEXR compression constants */
|
||||
|
||||
|
|
Loading…
Reference in New Issue