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

gehafearless pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new eda2217c2 fix: drop redundant semicolons of error_s macros (#1865)
eda2217c2 is described below

commit eda2217c2284224c91d9d52c8a3bbdd863896923
Author: Dan Wang <[email protected]>
AuthorDate: Mon Jan 22 15:03:34 2024 +0800

    fix: drop redundant semicolons of error_s macros (#1865)
---
 src/utils/errors.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/utils/errors.h b/src/utils/errors.h
index 29ba0210b..0b692bfa4 100644
--- a/src/utils/errors.h
+++ b/src/utils/errors.h
@@ -231,13 +231,13 @@ USER_DEFINED_STRUCTURE_FORMATTER(::dsn::error_s);
         if (dsn_unlikely(!_s)) {                                               
                    \
             return _s;                                                         
                    \
         }                                                                      
                    \
-    } while (false);
+    } while (false)
 
 #define CHECK_OK(s, ...)                                                       
                    \
     do {                                                                       
                    \
         const ::dsn::error_s &_s = (s);                                        
                    \
         CHECK(_s.is_ok(), fmt::format(__VA_ARGS__));                           
                    \
-    } while (false);
+    } while (false)
 
 #define RETURN_ERRS_NOT_TRUE(exp, code, ...)                                   
                    \
     do {                                                                       
                    \


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to