Skip to content

Commit e9e7625

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 5520ce1 commit e9e7625

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
@@ -340,6 +340,7 @@ cfg_if! {
340340
/// the identifier of a standard I/O function and returns the
341341
/// identifier of the corresponding I/O function with large file
342342
/// support.
343+
#[allow(unused_macro_rules)]
343344
macro_rules! largefile_fn {
344345
[fallocate] => (libc::fallocate64);
345346
[ftruncate] => (libc::ftruncate64);

0 commit comments

Comments
 (0)