Kaynağa Gözat

refixed cppcheck findings

stefan 9 ay önce
ebeveyn
işleme
7b362a9afe
2 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 5 0
      cfg/cppcheck/cppcheck_suppressions.xml
  2. 2 2
      src/shellmatta.c

+ 5 - 0
cfg/cppcheck/cppcheck_suppressions.xml

@@ -44,6 +44,11 @@
         <fileName>src/shellmatta.c</fileName>
         <symbolName>shellmatta_write</symbolName>
     </suppress>
+    <suppress>
+        <id>constVariablePointer</id>
+        <fileName>src/shellmatta.c</fileName>
+        <lineNumber>780</lineNumber>
+    </suppress>
     <suppress>
         <id>unusedFunction</id>
         <fileName>src/shellmatta_opt.c</fileName>

+ 2 - 2
src/shellmatta.c

@@ -776,8 +776,8 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t     handle,
                                             char                    *data,
                                             uint32_t                 size)
 {
-    shellmatta_retCode_t        ret   = SHELLMATTA_OK;
-    const shellmatta_instance_t *inst = (shellmatta_instance_t*)handle;
+    shellmatta_retCode_t    ret   = SHELLMATTA_OK;
+    shellmatta_instance_t   *inst = (shellmatta_instance_t*)handle;
 #ifdef SHELLMATTA_TRANSPORT
     char                    *tmpData;
     uint32_t                tmpSize = 0;