Fixed the build error using gcc 13 37/295137/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 3 Jul 2023 07:27:22 +0000 (07:27 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 3 Jul 2023 07:27:22 +0000 (07:27 +0000)
- Fix wrong indentation
- Remove unnecessary std::move call

Change-Id: I903fa85df87fccb7b0aa74aeccd4c888d26e48c1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/cynara_thread.cc
src/debug-port-internal.hh
src/port-internal.cc

index 7e5b84b..15ccf15 100644 (file)
@@ -47,7 +47,7 @@ CynaraThread::~CynaraThread() {
 
 void CynaraThread::ThreadRun() {
   while (true) {
-    Job job = std::move(queue_.WaitAndPop());
+    Job job = queue_.WaitAndPop();
     Job::Type ret = job.Do();
     if (ret == Job::Type::Finish)
       return;
index 1fb2285..9b68c65 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef DEBUG_PORT_INTERNAL_HH_
 #define DEBUG_PORT_INTERNAL_HH_
 
+#include <cstdint>
 #include <string>
 
 namespace rpc_port {
index a937278..5c7d66c 100644 (file)
@@ -266,10 +266,10 @@ int Port::Write(const void* buf, unsigned int size, int* sent_bytes) {
         continue;
       }
 
-    if (errno == EAGAIN || errno == EWOULDBLOCK)
-      return PORT_STATUS_ERROR_RESOURCE_UNAVAILABLE;
+      if (errno == EAGAIN || errno == EWOULDBLOCK)
+        return PORT_STATUS_ERROR_RESOURCE_UNAVAILABLE;
 
-      _E("write_socket: ...error fd %d: errno %d\n", fd_, errno);
+      _E("write_socket: ...error fd: %d, errno: %d", fd_, errno);
       return PORT_STATUS_ERROR_IO_ERROR;
     }