Skip to content

Commit

Permalink
Clang: silence -Wdeprecated-declarations for now
Browse files Browse the repository at this point in the history
RPi: hopefully silence a warning
  • Loading branch information
lukasmatena committed Feb 8, 2021
1 parent 1834ebe commit a772863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ if (NOT MSVC AND ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMP
add_compile_options(-Wno-ignored-attributes) # Tamas: Eigen include dirs are marked as SYSTEM
endif()

# Clang reports legacy OpenGL calls as deprecated. Turn off the warning for now
# to reduce the clutter, we know about this one. It should be reenabled after
# we finally get rid of the deprecated code.
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_compile_options(-Wno-deprecated-declarations)
endif()

#GCC generates loads of -Wunknown-pragmas when compiling igl. The fix is not easy due to a bug in gcc, see
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943 or
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
Expand Down
2 changes: 1 addition & 1 deletion src/libslic3r/SLA/Rotfinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ XYRotation from_transform3d(const Transform3d &tr)
template<size_t N, class Fn, class It, class StopCond>
std::array<double, N> find_min_score(Fn &&fn, It from, It to, StopCond &&stopfn)
{
std::array<double, N> ret;
std::array<double, N> ret = {};

double score = std::numeric_limits<double>::max();

Expand Down

0 comments on commit a772863

Please sign in to comment.