Page MenuHome

Cleanup: silence [-Wmissing-braces] warning.

Authored by Ankit Meel (ankitm) on Fri, Sep 11, 7:09 PM.



Introduced in rBd6525e8d133b: Use DrawManager for Image/UV Editor

Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix

source/blender/draw/engines/image/image_shader.c:46:13: warning:
suggest braces around initialization of subobject [-Wmissing-braces]
} e_data = {0}; /* Engine data */
1 warning generated.

Diff Detail

rB Blender

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Fri, Sep 11, 7:09 PM
Ankit Meel (ankitm) created this revision.

commit message update.


does e_data = {{0}}; already work. Best to keep it as short as possible.

Ankit Meel (ankitm) marked an inline comment as done.
  • Remove NULL initialization.

Sorry, thought that this was already committed.

This revision is now accepted and ready to land.Wed, Sep 16, 4:26 PM
This revision was automatically updated to reflect the committed changes.