Kingal1337 / flipper-barcode-generator

A barcode generator for the Flipper Zero that supports UPC-A, EAN-8, EAN-13, Code-39, Codabar, & Code-128
MIT License
55 stars 8 forks source link

Compile Issue #2

Closed RogueMaster closed 1 year ago

RogueMaster commented 1 year ago

Could you fix the compile issue on this file?

https://github.com/Kingal1337/flipper-barcode-generator/blob/master/views/message_view.c#L59

For now, I removed the whole function and call to it, but it does cause this compile error on OFW compile: applications/external/barcode_app/views/message_view.c: In function 'message_view_free_model': applications/external/barcode_app/views/message_view.c:59:28: error: unused variable 'model' [-Werror=unused-variable] 59 | MessageViewModel * model,                                           ^~~~~ applications/services/gui/view.h:233:9: note: in definition of macro 'with_view_model' 233 | type = view_get_model(view); \         ^~~~

Kingal1337 commented 1 year ago

That function wasn't necessary, I removed it from my version as well. It seems to compile fine now.

Also compiles fine in OFW