This is an automated email from the ASF dual-hosted git repository.

jiahuili430 pushed a commit to branch fix-compilation-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb-ibrowse.git

commit e4683afbfff5e977745a29135b6207adb98783be
Author: Jiahui Li <[email protected]>
AuthorDate: Wed Sep 17 11:13:26 2025 -0500

    Replace `gen_server:format_status/2` to `format_status/1`
    
    Fix the following warnings:
    
    ```log
    [2025-09-17T13:01:35.309Z] 
/home/jenkins/workspace/next-multibranch-pipeline_otp-27/src/ibrowse/src/ibrowse_http_client.erl:9:2:
 Warning: the callback gen_server:format_status(_,_) is deprecated; use 
format_status/1 instead
    ```
---
 src/ibrowse_http_client.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ibrowse_http_client.erl b/src/ibrowse_http_client.erl
index bee6a70..a2228ed 100644
--- a/src/ibrowse_http_client.erl
+++ b/src/ibrowse_http_client.erl
@@ -34,7 +34,7 @@
          handle_info/2,
          terminate/2,
          code_change/3,
-         format_status/2
+         format_status/1
         ]).
 
 -include("ibrowse.hrl").
@@ -324,11 +324,11 @@ code_change(_OldVsn, State, _Extra) ->
 
 
 %%--------------------------------------------------------------------
-%% Function: format_status/2
+%% Function: format_status/1
 %% Purpose: Clean process state before logging
 %% Returns: key value list
 %%--------------------------------------------------------------------
-format_status(_Opt, [_PDict, State]) ->
+format_status([_PDict, State]) ->
     #state{
         reqs=Reqs,
         reply_buffer=ReplyBuf,

Reply via email to