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

Fix static analysis warning for unreachable BAGL code for NBGL #298

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@
#include "ui_commons.h"
#include "ui_stream.h"
#include "ui_home.h"
#include "ui_settings.h"
#include "utils.h"

#ifdef HAVE_BAGL
#include "ui_settings.h"
#endif

#include "parser/parser_state.h"

#define MAX_APDU_SIZE 235
Expand Down
25 changes: 22 additions & 3 deletions app/src/ui_settings.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
/*
*
*/
/* Tezos Ledger application - Initialize Nano settings

Copyright 2023 TriliTech <[email protected]>

With code excerpts from:
- Legacy Tezos app, Copyright 2019 Obsidian Systems
- Legacy Tezos app, Copyright 2023 Ledger
- Ledger Blue sample apps, Copyright 2016 Ledger

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

#ifdef HAVE_BAGL
#pragma once

#define SETTINGS_HOME_PAGE 0
Expand All @@ -15,3 +33,4 @@
* Settings.
*/
void ui_settings_init(int16_t page);
#endif // HAVE_BAGL
Loading