Skip to content

Commit

Permalink
Fixed Windows warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lelegard committed Jan 17, 2023
1 parent 820fb82 commit af1c889
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/libtsduck/base/types/tsCompactBitSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ namespace ts {
//! @tparam BITS Number of bits. Must be in the range 0 to 64.
//!
template <const size_t BITS>
class TSDUCKDLL CompactBitSet final
class CompactBitSet final
{
public:
// Overflow in position is explicitly ignored.
TS_PUSH_WARNING()
TS_GCC_NOWARNING(shift-count-overflow)
TS_GCC_NOWARNING(shift-negative-value)
TS_MSC_NOWARNING(4310) // cast truncates constant value
TS_MSC_NOWARNING(4293) // '<<' : shift count negative or too big, undefined behavior

//!
//! Number of bits in this set.
Expand Down Expand Up @@ -253,7 +255,6 @@ namespace ts {
};
}

#if defined(TS_NEED_STATIC_CONST_DEFINITIONS)
template <const size_t BITS>
constexpr size_t ts::CompactBitSet<BITS>::SIZE;

Expand All @@ -262,5 +263,4 @@ constexpr size_t ts::CompactBitSet<BITS>::MAX;

template <const size_t BITS>
constexpr typename ts::CompactBitSet<BITS>::int_t ts::CompactBitSet<BITS>::ALL;
#endif

2 changes: 1 addition & 1 deletion src/libtsduck/tsVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
//!
//! TSDuck commit number (automatically updated by Git hooks).
//!
#define TS_COMMIT 3138
#define TS_COMMIT 3139

0 comments on commit af1c889

Please sign in to comment.