error: Kill @error_warn
We added @error_warn some two years ago in commit 3ffef1a55c (error:
add global &error_warn destination). It has multiple issues:
* error.h's big comment was not updated for it.
* Function contracts were not updated for it.
* ERRP_GUARD() is unaware of @error_warn, and fails to mask it from
error_prepend() and such. These crash on @error_warn, as pointed
out by Akihiko Odaki.
All fixable. However, after more than two years, we had just of 15
uses, of which the last few patches removed seven as unclean or
otherwise undesirable, adding back five elsewhere. I didn't look
closely enough at the remaining seven to decide whether they are
desirable or not.
I don't think this feature earns its keep. Drop it.
Thanks-to: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-ID: <20250923091000.3180122-14-armbru@redhat.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
This commit is contained in:
parent
e0c6c38738
commit
bcb536cabe
11 changed files with 49 additions and 39 deletions
|
|
@ -168,11 +168,14 @@ static inline void qemu_funlockfile(FILE *f)
|
|||
#endif
|
||||
}
|
||||
|
||||
/* Helper for WSAEventSelect, to report errors */
|
||||
/* Helpers for WSAEventSelect() */
|
||||
bool qemu_socket_select(int sockfd, WSAEVENT hEventObject,
|
||||
long lNetworkEvents, Error **errp);
|
||||
void qemu_socket_select_nofail(int sockfd, WSAEVENT hEventObject,
|
||||
long lNetworkEvents);
|
||||
|
||||
bool qemu_socket_unselect(int sockfd, Error **errp);
|
||||
void qemu_socket_unselect_nofail(int sockfd);
|
||||
|
||||
/* We wrap all the sockets functions so that we can set errno based on
|
||||
* WSAGetLastError(), and use file-descriptors instead of SOCKET.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue