mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-13 13:09:49 +04:00
Api Symbols: replace asserts with checks (#3507)
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
@@ -164,6 +164,6 @@ static const FlipperAppPluginDescriptor aime_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* aime_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* aime_plugin_ep(void) {
|
||||
return &aime_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -102,6 +102,6 @@ static const FlipperAppPluginDescriptor all_in_one_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* all_in_one_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* all_in_one_plugin_ep(void) {
|
||||
return &all_in_one_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -363,6 +363,6 @@ static const FlipperAppPluginDescriptor bip_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* bip_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* bip_plugin_ep(void) {
|
||||
return &bip_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -616,6 +616,6 @@ static const FlipperAppPluginDescriptor clipper_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* clipper_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* clipper_plugin_ep(void) {
|
||||
return &clipper_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -83,6 +83,6 @@ static const FlipperAppPluginDescriptor gallagher_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point */
|
||||
const FlipperAppPluginDescriptor* gallagher_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* gallagher_plugin_ep(void) {
|
||||
return &gallagher_plugin_descriptor;
|
||||
}
|
||||
@@ -220,6 +220,6 @@ static const FlipperAppPluginDescriptor hi_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* hi_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* hi_plugin_ep(void) {
|
||||
return &hi_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -148,6 +148,6 @@ static const FlipperAppPluginDescriptor hid_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* hid_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* hid_plugin_ep(void) {
|
||||
return &hid_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -119,6 +119,6 @@ static const FlipperAppPluginDescriptor itso_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* itso_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* itso_plugin_ep(void) {
|
||||
return &itso_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -225,6 +225,6 @@ static const FlipperAppPluginDescriptor microel_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* microel_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* microel_plugin_ep(void) {
|
||||
return µel_plugin_descriptor;
|
||||
}
|
||||
@@ -251,6 +251,6 @@ static const FlipperAppPluginDescriptor mizip_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* mizip_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* mizip_plugin_ep(void) {
|
||||
return &mizip_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -152,6 +152,6 @@ static const FlipperAppPluginDescriptor mykey_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* mykey_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* mykey_plugin_ep(void) {
|
||||
return &mykey_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -111,6 +111,6 @@ static const FlipperAppPluginDescriptor myki_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* myki_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* myki_plugin_ep(void) {
|
||||
return &myki_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -228,6 +228,6 @@ static const FlipperAppPluginDescriptor opal_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* opal_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* opal_plugin_ep(void) {
|
||||
return &opal_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -215,6 +215,6 @@ static const FlipperAppPluginDescriptor plantain_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* plantain_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* plantain_plugin_ep(void) {
|
||||
return &plantain_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -244,6 +244,6 @@ static const FlipperAppPluginDescriptor troika_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* troika_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* troika_plugin_ep(void) {
|
||||
return &troika_plugin_descriptor;
|
||||
}
|
||||
@@ -186,6 +186,6 @@ static const FlipperAppPluginDescriptor two_cities_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* two_cities_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* two_cities_plugin_ep(void) {
|
||||
return &two_cities_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -148,6 +148,6 @@ static const FlipperAppPluginDescriptor umarsh_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* umarsh_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* umarsh_plugin_ep(void) {
|
||||
return &umarsh_plugin_descriptor;
|
||||
}
|
||||
|
||||
@@ -192,6 +192,6 @@ static const FlipperAppPluginDescriptor washcity_plugin_descriptor = {
|
||||
};
|
||||
|
||||
/* Plugin entry point - must return a pointer to const descriptor */
|
||||
const FlipperAppPluginDescriptor* washcity_plugin_ep() {
|
||||
const FlipperAppPluginDescriptor* washcity_plugin_ep(void) {
|
||||
return &washcity_plugin_descriptor;
|
||||
}
|
||||
Reference in New Issue
Block a user