http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53998

             Bug #: 53998
           Summary: [PATCH] fixed format string issue in
                    gcc/libgo/runtime/goc2c.c
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
        AssignedTo: i...@airs.com
        ReportedBy: ettl.mar...@gmx.de


Created attachment 27815
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27815
proposed patch

Please review the attached patch. It fixes two format string issue in file:
gcc/libgo/runtime/goc2c.c


This patch replaces the format string in an printf expression from %d to %u:

     printf("#line %d \"%s\"\n", lineno, file);

because the variable lineno is of type unsigned int, which requires %u.

Best regards

Ettl Martin

Reply via email to