Fix build error for gcc upgrade 60/312260/2 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20240611.123136 accepted/tizen/unified/20240626.155254 accepted/tizen/unified/dev/20240620.010940 accepted/tizen/unified/toolchain/20240610.172713 accepted/tizen/unified/x/20240610.223256 accepted/tizen/unified/x/asan/20240625.092250
authorYoungHun Kim <yh8004.kim@samsung.com>
Wed, 5 Jun 2024 10:17:36 +0000 (19:17 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Wed, 5 Jun 2024 10:30:23 +0000 (19:30 +0900)
 -Wimplicit-function-declaration
 -Wimplicit-fallthrough

Change-Id: Ifff0e146430b6b8d317a5a1198d9346e7ab030a8

packaging/murphy.spec
src/common/dgram-transport.c
src/common/native-types.c
src/common/stream-transport.c
src/plugins/resource-native/resource-client.c
src/resource/protocol.h

index bf2803e1825dde89a96b87ec2e7e18620a1ca9fa..017f6c9889b85dbbf6c56fb55484a074373b4393 100644 (file)
@@ -29,7 +29,7 @@
 Summary: Resource policy framework
 Name: murphy
 Version: 0.0.75
-Release: 29
+Release: 30
 License: BSD-3-Clause
 Group: System/Service
 URL: http://01.org/murphy/
index b54ed6278691c654e7014661cda44c434e36db4e..262be063d9523a1286af59aee397dee4976a8cb6 100644 (file)
@@ -127,6 +127,7 @@ static int parse_address(const char *str, int *familyp, char *nodep,
 
         nl = service - node;
         service++;
+        break;
 
     case AF_INET6:
         service = strrchr(node, ':');
index d9890e3e3e724c16d02d405012ba51a5e4836657..6f752b7d7d10327e5a9d6e6992bd38838cb7557b 100644 (file)
@@ -776,6 +776,7 @@ static int encode_array(mrp_tlv_t *tlv, void *arrp, mrp_native_array_t *m,
         switch (t->id) {
         case MRP_TYPE_STRING:
             v = *(void **)elem;
+        /* fall through */
         case MRP_TYPE_INT8:
         case MRP_TYPE_UINT8:
         case MRP_TYPE_INT16:
@@ -1426,6 +1427,7 @@ static int print_array(char **bufp, size_t *sizep, int level,
         switch (et->id) {
         case MRP_TYPE_STRING:
             v = *(void **)elem;
+        /* fall through */
         case MRP_TYPE_INT8:
         case MRP_TYPE_UINT8:
         case MRP_TYPE_INT16:
index d8ee1e68f898f111bf1b861addfb3fd3c50d8726..6e085b0a2d15aa4810b15ba47920269873ee2f08 100644 (file)
@@ -119,6 +119,7 @@ static int parse_address(const char *str, int *familyp, char *nodep,
 
         nl = service - node;
         service++;
+        break;
 
     case AF_INET6:
         service = strrchr(node, ':');
index a920eb3a5e8e5708bb7cedf50e72ac2f9051e78f..122b3708b44f71bc11b78d5fe65fcc04ac5d5692 100644 (file)
@@ -1693,6 +1693,7 @@ static void parse_arguments(client_t *client, int argc, char **argv)
         switch (opt) {
         case 'h':
             usage(client, 0);
+            break;
         case 'v':
             client->msgdump = true;
             break;
index 30c7691ab9bcd4dffc4873e847bfe4886d93460f..a243c07d0acdda075fd7144eb127b0ec72ef7d1a 100644 (file)
@@ -34,6 +34,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #include <murphy/common/msg.h>