ChuckBell / MySQL_Connector_Arduino

Database connector library for using MySQL with your Arduino projects.
331 stars 132 forks source link

MySQL_Connector on Arduino Warning in compiler #123

Closed formeforgit closed 2 years ago

formeforgit commented 4 years ago

Hi, im not speak english - please have indulgence

my first Arduniotest with query_result.ino give 5 error when once compile. in next compile no error - while latest compiled file used

i have errormessage in 2 atached file (png and txt) - in codetags not passed note....

Enviroment: ubuntu 18.04 - latest update/upgrade Arduino 1.8.10 mysqlconnector 1.1.1

thanks for respond

MySQL_error

con_err.txt

ChuckBell commented 4 years ago

I don't see errors, I see warnings. Can you post the complete error message? To fix the "no return" message, just edit the file shown and add the return statement. Some compilers complain; others don't.

formeforgit commented 4 years ago

Thanks for comment and remedy.

You have right - is not an a error. i have change the subject. i have in MySQL_Encrypt_sha1.cpp two lines insert: 1) at line 89 in size_t Encrypt_SHA1::write(uint8_t data) 2) at line 95 in size_t Encrypt_SHA1::write(uint8_t* data, int length) new lines: return(0);

have you idea for rectification [-Wunused-parameter] in MySQL_Packet.cpp? thanks

ChuckBell commented 4 years ago

I compiled the code and do not see those errors. Those parameters are being used. So, let's try this. What board are you using and which programmer do you have selected? BTW, most warnings like this can be safely ignored.

ChuckBell commented 4 years ago

You can also just turn the warnings off in the preferences. Just saying...