Skip to content

Commit 9075d4a

Browse files
committed
allow unused macro rules in largefile_fn
Not all arms of largefile_fn are used in all configurations. To prevent warnings about this, add an annotation.
1 parent c6a610d commit 9075d4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ cfg_if! {
342342
/// the identifier of a standard I/O function and returns the
343343
/// identifier of the corresponding I/O function with large file
344344
/// support.
345+
#[allow(unused_macro_rules)]
345346
macro_rules! largefile_fn {
346347
[fallocate] => (libc::fallocate64);
347348
[ftruncate] => (libc::ftruncate64);

0 commit comments

Comments
 (0)