diff options
author | dim <dim@FreeBSD.org> | 2014-03-26 19:57:50 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-03-26 19:57:50 +0000 |
commit | 6ceec4444ddbcea29246cb67b83eff062485cdc3 (patch) | |
tree | 080dbf17a996b3adf36581c4645619db9542f9cf /bin/sh/redir.c | |
parent | d8bb143013808c3a408228d184e27292e5274991 (diff) | |
download | FreeBSD-src-6ceec4444ddbcea29246cb67b83eff062485cdc3.zip FreeBSD-src-6ceec4444ddbcea29246cb67b83eff062485cdc3.tar.gz |
Avoid "cc1: warning: is shorter than expected" when using GNU cpp in
combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs"
shebang lines. This is because dtrace positions the file pointer after
the shebang line, before passing the file to GNU cpp.
To fix the warning, adjust the size downwards by the current position,
after a bit of sanity checking.
Suggested by: avg
MFC after: 1 week
Diffstat (limited to 'bin/sh/redir.c')
0 files changed, 0 insertions, 0 deletions