Skip to content

Commit

Permalink
Move GCC specific pragma into #ifdef
Browse files Browse the repository at this point in the history
Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Oct 7, 2016
1 parent 3ec2656 commit d0f1f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/spline/spline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ Point3V Spline::GetValue(const Point2V &ab) const //{{{1
}

// Point3 Spline::GetValueAlice(Point2 ab) const {{{1
#pragma GCC diagnostic ignored "-Wold-style-cast"
#ifdef Vc_GCC
#pragma GCC diagnostic ignored "-Wold-style-cast"
__attribute__((optimize("no-tree-vectorize")))
#endif
Point3 Spline::GetValueAlice(Point2 ab) const
Expand Down

0 comments on commit d0f1f52

Please sign in to comment.