Skip to content

Commit

Permalink
Merge commit 'cfdd004b61ce5d84489bccb637b4a39c7305eabc' into pr/fmt_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Oct 21, 2022
2 parents ca915aa + cfdd004 commit 20668dd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmake/yacma/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2020 Francesco Biscani
Copyright (c) 2016-2022 Francesco Biscani

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 16 additions & 5 deletions cmake/yacma/YACMACompilerLinkerSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ if(NOT _YACMACompilerLinkerSettingsRun)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wsizeof-array-div)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wxor-used-as-pow)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wfinal-dtor-non-final-class)
# New warnings in clang 11.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wpointer-to-int-cast)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wuninitialized-const-reference)
# New warnings in clang 13.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wunused-but-set-parameter)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wunused-but-set-variable)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wnull-pointer-subtraction)
# NOTE: this is a new flag in Clang 13 which seems to give
# incorrect warnings for UDLs.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wno-reserved-identifier)
endif()

# Common configuration for GCC, clang and Intel.
Expand All @@ -135,11 +145,6 @@ if(NOT _YACMACompilerLinkerSettingsRun)
# This is useful when the compiler decides the template backtrace is too verbose.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-ftemplate-backtrace-limit=0)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-fstack-protector-all)
# A few suggestion flags.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wsuggest-attribute=pure)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wsuggest-attribute=const)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wsuggest-attribute=noreturn)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wsuggest-attribute=format)
# From GCC 5.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wodr)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wsuggest-final-types)
Expand Down Expand Up @@ -173,6 +178,12 @@ if(NOT _YACMACompilerLinkerSettingsRun)
message(STATUS "Activating the '-Wno-maybe-uninitialized' workaround for GCC.")
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wno-maybe-uninitialized)
endif()
# From GCC 10.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wmismatched-tags)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wredundant-tags)
# From GCC 12.
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Warray-compare)
_YACMA_CHECK_ENABLE_DEBUG_CXX_FLAG(-Wmissing-requires)
endif()

# MSVC setup.
Expand Down

0 comments on commit 20668dd

Please sign in to comment.