@@ -43,7 +43,6 @@ Json_startString(char* buffer, size_t buffer_size) {
4343 bool success = false;
4444
4545 if (buffer_size >= MINIMAL_SIZE ) {
46- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
4746 strcpy (& buffer [0 ], "{" );
4847 success = true;
4948 }
@@ -59,25 +58,19 @@ Json_addData(char* buffer, size_t buffer_size, const char* key, const char* valu
5958 size_t total_size = strlen ("\"\":\"\"" ) + strlen (key ) + strlen (value ) + 1U ;
6059
6160 if (0 == strcmp (& buffer [index - 1U ], "\"" )) {
62- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
6361 strcpy (& buffer [index ], "," );
6462 ++ index ;
6563 }
6664
6765 if ((total_size + index ) <= buffer_size ) {
68- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
6966 strcpy (& buffer [index ], "\"" );
7067 index += strlen ("\"" );
71- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
7268 strcpy (& buffer [index ], key );
7369 index += strlen (key );
74- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
7570 strcpy (& buffer [index ], "\":\"" );
7671 index += strlen ("\":\"" );
77- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
7872 strcpy (& buffer [index ], value );
7973 index += strlen (value );
80- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
8174 strcpy (& buffer [index ], "\"" );
8275
8376 success = true;
@@ -92,7 +85,6 @@ Json_endString(char* buffer, size_t buffer_size) {
9285
9386 size_t index = strlen (buffer );
9487 if (buffer_size >= (MINIMAL_SIZE + index )) {
95- // cppcheck-suppress misra-c2012-17.7; return value is not needed in this case, therefore it is not used
9688 strcpy (& buffer [index ], "}" );
9789 success = true;
9890 }
0 commit comments