* as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
[fw/sdcc] / support / cpp / c-ppoutput.c
index 812c91adefe4bfa314312f0014a774456a1b4f11..908558354adc9ee699ce8062800c945b5dc8d922 100644 (file)
@@ -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 <assert.h>
 #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);