Fix compilation errors and warnings with Clang-6
This commit is contained in:
@@ -716,7 +716,7 @@ float Camera::world_to_raster_size(float3 P)
|
||||
float3 D = transform_point(&worldtocamera, P);
|
||||
float dist = len(D);
|
||||
|
||||
Ray ray = {0};
|
||||
Ray ray = {{0}};
|
||||
|
||||
/* Distortion can become so great that the results become meaningless, there
|
||||
* may be a better way to do this, but calculating differentials from the
|
||||
|
||||
@@ -964,7 +964,7 @@ static void draw_sensor_collision(uiLayout *layout, PointerRNA *ptr, bContext *C
|
||||
uiItemR(row, ptr, "use_pulse", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "use_material", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
|
||||
|
||||
switch (RNA_boolean_get(ptr, "use_material")) {
|
||||
switch (RNA_enum_get(ptr, "use_material")) {
|
||||
case SENS_COLLISION_PROPERTY:
|
||||
uiItemR(split, ptr, "property", 0, NULL, ICON_NONE);
|
||||
break;
|
||||
|
||||
@@ -641,7 +641,7 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports)
|
||||
struct {
|
||||
char app_template[64];
|
||||
bool override;
|
||||
} wm_init_state_app_template = {0};
|
||||
} wm_init_state_app_template = {{0}};
|
||||
|
||||
/**
|
||||
* Used for setting app-template from the command line:
|
||||
|
||||
Reference in New Issue
Block a user