Remove build warning messages 35/281935/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 23 Sep 2022 08:31:05 +0000 (08:31 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 23 Sep 2022 08:31:05 +0000 (08:31 +0000)
- Remove unused variable
- Remove const keyword

Change-Id: I29a6177607d338970072521bec5b4a9bac9aa3bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
parser/src/pkgmgr_parser_deprecated.c
src/server/request_handler/abstract_request_handler.cc

index 9566245..1300948 100644 (file)
@@ -1277,6 +1277,8 @@ static int __run_tag_parser_prestep(void *lib_handle, xmlTextReaderPtr reader, A
 
 static void __process_tag(void *lib_handle, xmlTextReaderPtr reader, ACTION_TYPE action, char *tag, const char *pkgid)
 {
+       xmlChar *elementName;
+
        switch (xmlTextReaderNodeType(reader)) {
        case XML_READER_TYPE_END_ELEMENT:
                {
@@ -1285,8 +1287,7 @@ static void __process_tag(void *lib_handle, xmlTextReaderPtr reader, ACTION_TYPE
        case XML_READER_TYPE_ELEMENT:
                {
                        /* Elements without closing tag don't receive */
-                       const xmlChar *elementName =
-                           xmlTextReaderLocalName(reader);
+                       elementName = xmlTextReaderLocalName(reader);
                        if (elementName == NULL)
                                break;
 
index 174155e..207fa7f 100644 (file)
@@ -36,10 +36,7 @@ uid_t AbstractRequestHandler::GetUID() {
 tizen_base::Parcel AbstractRequestHandler::ExtractResult() {
   tizen_base::Parcel parcel;
   parcel.WriteParcelable(*result_);
-  const std::vector<uint8_t>& raw = parcel.GetRaw();
-
   result_.reset();
-
   return parcel;
 }