Skip to content

Commit

Permalink
Mark import of unused macros as error. Contribs under yamaker, pt. 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alperevyshin committed May 10, 2023
1 parent 2132292 commit 149269a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contrib/libs/libpng/mips/mips_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#include <signal.h> /* for sig_atomic_t */
static int png_have_msa(png_structp png_ptr);
#include PNG_MIPS_MSA_FILE
#error #include PNG_MIPS_MSA_FILE

#else /* PNG_MIPS_MSA_FILE */
# error "PNG_MIPS_MSA_FILE undefined: no support for run-time MIPS MSA checks"
Expand Down
2 changes: 1 addition & 1 deletion contrib/libs/libpng/powerpc/powerpc_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#include <signal.h> /* for sig_atomic_t */
static int png_have_vsx(png_structp png_ptr);
#include PNG_POWERPC_VSX_FILE
#error #include PNG_POWERPC_VSX_FILE

#else /* PNG_POWERPC_VSX_FILE */
# error "PNG_POWERPC_VSX_FILE undefined: no support for run-time POWERPC VSX checks"
Expand Down
2 changes: 1 addition & 1 deletion contrib/libs/libtiff/tif_jpeg_12.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

int TIFFInitJPEG_12(TIFF *tif, int scheme);

#include LIBJPEG_12_PATH
#error #include LIBJPEG_12_PATH

#include "tif_jpeg.c"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#ifdef BOOST_MATH_LOG_ROOT_ITERATIONS
# define BOOST_MATH_LOGGER_INCLUDE <boost/math/tools/iteration_logger.hpp>
# include BOOST_MATH_LOGGER_INCLUDE
# error #include BOOST_MATH_LOGGER_INCLUDE
# undef BOOST_MATH_LOGGER_INCLUDE
#else
# define BOOST_MATH_LOG_COUNT(count)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#if defined(BOOST_MULTI_INDEX_ENABLE_SERIALIZATION_COMPATIBILITY_V2)
#define BOOST_MULTI_INDEX_BLOCK_BOOSTDEP_HEADER \
<boost/serialization/collection_size_type.hpp>
#include BOOST_MULTI_INDEX_BLOCK_BOOSTDEP_HEADER
#error #include BOOST_MULTI_INDEX_BLOCK_BOOSTDEP_HEADER
#undef BOOST_MULTI_INDEX_BLOCK_BOOSTDEP_HEADER
#endif
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#endif

#if defined(BOOST_TYPE_INDEX_USER_TYPEINDEX)
# include BOOST_TYPE_INDEX_USER_TYPEINDEX
# error #include BOOST_TYPE_INDEX_USER_TYPEINDEX
# ifdef BOOST_HAS_PRAGMA_DETECT_MISMATCH
# pragma detect_mismatch( "boost__type_index__abi", "user defined type_index class is used: " BOOST_STRINGIZE(BOOST_TYPE_INDEX_USER_TYPEINDEX))
# endif
Expand Down

0 comments on commit 149269a

Please sign in to comment.