Skip to content

Commit 8a677e7

Browse files
committed
Prepare the lz4 environment, it is expected to add the model compression function
Former-commit-id: 24712c6
1 parent ffcf133 commit 8a677e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4545
#include <streambuf>
4646
#include <vector>
4747

48-
namespace lz4tream {
48+
namespace lz4stream {
4949
/**
5050
* @brief An output stream that will LZ4 compress the input data.
5151
*
@@ -74,7 +74,7 @@ namespace lz4tream {
7474
*
7575
* @param sink The stream to write compressed data to
7676
*/
77-
explicit basic_ostream(std::ostream &sink) : std::ostream(new output_buffer(sink)), buffer_(dynamic_cast<output_buffer *>(rdbuf())) {
77+
[[maybe_unused]] explicit basic_ostream(std::ostream &sink) : std::ostream(new output_buffer(sink)), buffer_(dynamic_cast<output_buffer *>(rdbuf())) {
7878
assert(buffer_);
7979
}
8080

@@ -236,7 +236,7 @@ namespace lz4tream {
236236
*
237237
* @param source The stream to read LZ4 compressed data from
238238
*/
239-
explicit basic_istream(std::istream &source) : std::istream(new input_buffer(source)), buffer_(dynamic_cast<input_buffer *>(rdbuf())) {
239+
[[maybe_unused]] explicit basic_istream(std::istream &source) : std::istream(new input_buffer(source)), buffer_(dynamic_cast<input_buffer *>(rdbuf())) {
240240
assert(buffer_);
241241
}
242242

@@ -319,7 +319,7 @@ namespace lz4tream {
319319
};
320320

321321
using ostream = basic_ostream<>;
322-
using istream = basic_istream<>;
322+
using istream [[maybe_unused]] = basic_istream<>;
323323

324324
}
325325
#endif // lz4tream

0 commit comments

Comments
 (0)