X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fcpp%2Fc-ppoutput.c;h=908558354adc9ee699ce8062800c945b5dc8d922;hb=715485a0de0655c91f6c24edb2b15c7abeb00965;hp=812c91adefe4bfa314312f0014a774456a1b4f11;hpb=f3a44fc094dc5ce393e2029d3c7c6587a4b1a835;p=fw%2Fsdcc diff --git a/support/cpp/c-ppoutput.c b/support/cpp/c-ppoutput.c index 812c91ad..90855835 100644 --- a/support/cpp/c-ppoutput.c +++ b/support/cpp/c-ppoutput.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include #include "config.h" #include "system.h" #include "cpplib.h" @@ -194,11 +193,9 @@ scan_translation_unit_trad (cpp_reader *pfile) { while (_cpp_read_logical_line_trad (pfile)) { - size_t res; size_t len = pfile->out.cur - pfile->out.base; maybe_print_line (pfile->out.first_line); - res = fwrite (pfile->out.base, 1, len, print.outf); - assert(res == len); + fwrite (pfile->out.base, 1, len, print.outf); print.printed = 1; if (!CPP_OPTION (pfile, discard_comments)) account_for_newlines (pfile->out.base, len);