File: main.cpp-unused-parameter.patch

package info (click to toggle)
zarchive 0.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 316 kB
  • sloc: cpp: 1,010; ansic: 517; makefile: 8; sh: 4
file content (17 lines) | stat: -rw-r--r-- 617 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Comment out unused parameter in main.cpp
 Fixes autopkgtest
Author: Andrea Pappacoda <tachi@debian.org>
Forwarded: https://github.com/Exzap/ZArchive/pull/15
Last-Update: 2022-09-01

--- zarchive-0.1.1.orig/src/main.cpp
+++ zarchive-0.1.1/src/main.cpp
@@ -118,7 +118,7 @@ struct PackContext
 	bool hasError{false};
 };
 
-void _pack_NewOutputFile(const int32_t partIndex, void* ctx)
+void _pack_NewOutputFile(const int32_t /*partIndex*/, void* ctx)
 {
 	PackContext* packContext = (PackContext*)ctx;
 	packContext->currentOutputFile = std::ofstream(packContext->outputFilePath, std::ios::binary);