]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r263775:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 2 Apr 2014 06:17:57 +0000 (06:17 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 2 Apr 2014 06:17:57 +0000 (06:17 +0000)
commitbd8273fe29cec51f66fcb55e1e83f65b7d0e6ec3
tree40af670d3aa1910cb4e53926b95764544a5d0f1d
parent36db35f6ec6c76c7ed1e40f54633c1bee74c63e9
MFC r263775:

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@264032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/gcclibs/libcpp/files.c