UCSD-E4E / smartfin-fw2

Smartfin FW 2
GNU General Public License v3.0
1 stars 0 forks source link

Fixing unused vars and fmt chars #53

Closed ntlhui closed 1 year ago

ntlhui commented 2 years ago

Cleans up compiler warnings

ntlhui commented 1 year ago
/workspace//src/fileCLI.cpp: In member function 'void FileCLI::dumpBase85()':
/workspace//src/fileCLI.cpp:168:9: warning: unused variable 'retval' [-Wunused-variable]
  168 |     int retval;
      |         ^~~~~~
ntlhui commented 1 year ago
/workspace//src/cli.cpp: In function 'int CLI_testUpload()':
/workspace//src/cli.cpp:864:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  864 |     char* publishName = "Sfin-5d0036001750483553353920-test_msg";
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace//src/cli.cpp:862:13: warning: unused variable 'dataEncodeBuffer' [-Wunused-variable]
  862 |     uint8_t dataEncodeBuffer[DATA_UPLOAD_MAX_UPLOAD_LEN];
      |             ^~~~~~~~~~~~~~~~
ntlhui commented 1 year ago
/workspace//src/cli.cpp: In function 'int CLI_testUpload()':
/workspace//src/cli.cpp:863:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  863 |     char* publishName = "Sfin-5d0036001750483553353920-test_msg";
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~