Created attachment 154046 [details] Work around array problems in Blender's usage of _Generic During the exp-run in bug 197395, it was found that graphics/blender gives errors with clang 3.6.0: http://package18.nyi.freebsd.org/data/headamd64PR197395-default/2015-02-11_23h04m51s/logs/errors/blender-2.73a.log These errors are because blender attempts some interesting (or horrible, depending on your POV :) tricks with _Generic support, and apparently these fail when used on array types. To fix this, I have applied the equally interesting/horrible workaround from here: http://stackoverflow.com/questions/18857056/c11-generic-how-to-deal-with-string-literals
Does that fix still compile cleanly on older clang versions and GCC?
(In reply to Marcus von Appen from comment #1) This patch only changes behavior for compilers that default to C11, e.g. clang 3.6.0 or higher. For gcc, which defaults to "gnu89", and earlier versions of clang, which default to "gnu99", there should be no difference. That is, unless the port somehow manually enables -std=c11 somewhere during its configure phase? I can't recall whether that is the case. I currently do not have the resources to test this myself.
Is this still relevant for the recent 2.74 update to graphics/blender?
As far as I can see, upstream blender has still not fixed this, so yes, this patch still needs to be applied.
Close: graphics/blender builds find with clang 3.6.0 since the update to version 2.74