Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example compilation error #47

Open
hamidrouhi opened this issue Sep 16, 2023 · 0 comments
Open

Example compilation error #47

hamidrouhi opened this issue Sep 16, 2023 · 0 comments

Comments

@hamidrouhi
Copy link

Hi, I try to compile example, but get error:
duino15/packages/esp32/hardware/esp32/2.0.13/cores/esp32 -I/home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/variants/doitESP32devkitV1 -I/home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/FS/src -I/home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/SPI/src -I/home/hamid/.Arduino/libraries/TFT_eSPI -I/home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/SPIFFS/src -I/home/hamid/.Arduino/libraries/TFT_eFEX -I/home/hamid/.Arduino/libraries/JPEGDecoder/src -I/home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/SD/src /home/hamid/.Arduino/libraries/JPEGDecoder/src/JPEGDecoder.cpp -o /tmp/arduino/sketches/124410AA9F459AABD7AFF0E4F3A5CF29/libraries/JPEGDecoder/JPEGDecoder.cpp.o
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c: In function 'getExtendOffset':
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:375:27: warning: left shift of negative value [-Wshift-negative-value]
case 1: return ((-1)<<1) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:376:27: warning: left shift of negative value [-Wshift-negative-value]
case 2: return ((-1)<<2) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:377:27: warning: left shift of negative value [-Wshift-negative-value]
case 3: return ((-1)<<3) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:378:27: warning: left shift of negative value [-Wshift-negative-value]
case 4: return ((-1)<<4) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:379:27: warning: left shift of negative value [-Wshift-negative-value]
case 5: return ((-1)<<5) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:380:27: warning: left shift of negative value [-Wshift-negative-value]
case 6: return ((-1)<<6) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:381:27: warning: left shift of negative value [-Wshift-negative-value]
case 7: return ((-1)<<7) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:382:27: warning: left shift of negative value [-Wshift-negative-value]
case 8: return ((-1)<<8) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:383:27: warning: left shift of negative value [-Wshift-negative-value]
case 9: return ((-1)<<9) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:384:28: warning: left shift of negative value [-Wshift-negative-value]
case 10: return ((-1)<<10) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:385:28: warning: left shift of negative value [-Wshift-negative-value]
case 11: return ((-1)<<11) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:386:28: warning: left shift of negative value [-Wshift-negative-value]
case 12: return ((-1)<<12) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:387:28: warning: left shift of negative value [-Wshift-negative-value]
case 13: return ((-1)<<13) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:388:28: warning: left shift of negative value [-Wshift-negative-value]
case 14: return ((-1)<<14) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:389:28: warning: left shift of negative value [-Wshift-negative-value]
case 15: return ((-1)<<15) + 1;
^~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c: In function 'readSOSMarker':
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:685:57: error: variable 'successive_low' set but not used [-Werror=unused-but-set-variable]
uint8 spectral_start, spectral_end, successive_high, successive_low;
^~~~~~~~~~~~~~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:685:40: error: variable 'successive_high' set but not used [-Werror=unused-but-set-variable]
uint8 spectral_start, spectral_end, successive_high, successive_low;
^~~~~~~~~~~~~~~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:685:26: error: variable 'spectral_end' set but not used [-Werror=unused-but-set-variable]
uint8 spectral_start, spectral_end, successive_high, successive_low;
^~~~~~~~~~~~
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:685:10: error: variable 'spectral_start' set but not used [-Werror=unused-but-set-variable]
uint8 spectral_start, spectral_end, successive_high, successive_low;
^~~~~~~~~~~~~~
At top level:
/home/hamid/.Arduino/libraries/JPEGDecoder/src/picojpeg.c:1028:14: error: 'findEOI' defined but not used [-Werror=unused-function]
static uint8 findEOI(void)
^~~~~~~
cc1: some warnings being treated as errors

Using library FS at version 2.0.0 in folder: /home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/FS
Using library SPI at version 2.0.0 in folder: /home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/SPI
Using library TFT_eSPI at version 2.5.0 in folder: /home/hamid/.Arduino/libraries/TFT_eSPI
Using library SPIFFS at version 2.0.0 in folder: /home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/SPIFFS
Using library TFT_eFEX at version 0.0.8 in folder: /home/hamid/.Arduino/libraries/TFT_eFEX
Using library JPEGDecoder at version 1.8.1 in folder: /home/hamid/.Arduino/libraries/JPEGDecoder
Using library SD at version 2.0.0 in folder: /home/hamid/.arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/SD
exit status 1

Compilation error: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant