diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2025-02-27 15:29:10 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2025-02-27 15:29:10 +0100 |
commit | 82b541a4759a11935c2dc2c18f05dfd7e227699d (patch) | |
tree | d9ad42a89fee87686203e44819b158d0a1b35445 | |
parent | d4a5c2be8bc09823b9afd4c6eafd41981e5ed645 (diff) | |
download | newlib-82b541a4759a11935c2dc2c18f05dfd7e227699d.zip newlib-82b541a4759a11935c2dc2c18f05dfd7e227699d.tar.gz newlib-82b541a4759a11935c2dc2c18f05dfd7e227699d.tar.bz2 |
Cygwin: fix gcc-15 const warnings
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/local_includes/fhandler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/local_includes/fhandler.h b/winsup/cygwin/local_includes/fhandler.h index f54cb59..3945225 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 (); |