This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, rfc] fix warning building libssp in C11 mode


Building libssp in C11 mode shows a warning for 64bit configurations,

../../../src/libssp/gets-chk.c:62:12: warning: return makes pointer from integer
without a cast [-Wint-conversion]

Currently working around by adding a prototype in gets-chk.c, conditionally
defined by the inverted condition found in glibc's stdio.h.

Is there a better approach?

  Matthias

Attachment: libssp-gets.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]