Skip to content

Commit

Permalink
Fix static analysis warning for unreachable BAGL code for NBGL (trili…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkyaraj-23 authored Oct 2, 2024
1 parent 0484808 commit 667f5de
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
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

0 comments on commit 667f5de

Please sign in to comment.