https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=82b541a4759a11935c2dc2c18f05dfd7e227699d
commit 82b541a4759a11935c2dc2c18f05dfd7e227699d Author: Corinna Vinschen <[email protected]> AuthorDate: Thu Feb 27 15:29:10 2025 +0100 Commit: Corinna Vinschen <[email protected]> CommitDate: Thu Feb 27 15:29:10 2025 +0100 Cygwin: fix gcc-15 const warnings Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/local_includes/fhandler.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/local_includes/fhandler.h b/winsup/cygwin/local_includes/fhandler.h index f54cb59f396d..3945225c61e7 100644 --- a/winsup/cygwin/local_includes/fhandler.h +++ b/winsup/cygwin/local_includes/fhandler.h @@ -640,7 +640,7 @@ class fhandler_socket: public fhandler_base void set_addr_family (int af) {addr_family = af;} int get_addr_family () {return addr_family;} virtual void set_socket_type (int st) { type = st;} - virtual int get_socket_type () {return type;} + virtual int get_socket_type () const {return type;} /* select.cc */ virtual select_record *select_read (select_stuff *) = 0; @@ -1477,10 +1477,10 @@ public: cfree (pipe_name_buf); } /* Called if we appear to be at EOF after polling fc_handlers. */ - bool hit_eof () const + bool hit_eof () { return !nwriters () && !IsEventSignalled (writer_opening); } /* Special EOF test needed by select.cc:peek_fifo(). */ - bool select_hit_eof () const { return hit_eof () && writer_opened (); } + bool select_hit_eof () { return hit_eof () && writer_opened (); } int get_nhandlers () const { return nhandlers; } fifo_client_handler &get_fc_handler (int i) { return fc_handler[i]; } PUNICODE_STRING get_pipe_name ();
