Skip to content

Commit

Permalink
Refs #11020 Fix strict aliasing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 12, 2015
1 parent 224f8a7 commit 3903f47
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -58,9 +58,9 @@ namespace
}
}

GCC_DIAG_OFF(strict-aliasing)
void export_Projection()
{
GCC_DIAG_OFF(strict-aliasing)
class_<Projection>("Projection", init<>("Default constructor creates a two dimensional projection"))
.def(init<size_t>("Constructs an n-dimensional projection", args("num_dimensions")))
.def(init<VMD,VMD>("Constructs a 2 dimensional projection", args("u","v")))
Expand Down Expand Up @@ -89,5 +89,5 @@ void export_Projection()
)
.def("toWorkspace", toWorkspace, "Create a TableWorkspace representing the projection")
;
GCC_DIAG_ON(strict-aliasing)
}
GCC_DIAG_ON(strict-aliasing)

0 comments on commit 3903f47

Please sign in to comment.