# Why does \`sui move build\` show framework warnnings?

**URL:** <https://forums.sui.io/t/why-does-sui-move-build-show-framework-warnnings/44934>\
**Category:** Move\
**Tags:** sui\
**Created:** [August 10, 2023, 11:06pm UTC](https://forums.sui.io/t/why-does-sui-move-build-show-framework-warnnings/44934 "2023-08-10T23:06:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiqicao](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/shiqicao/32/30473_2.png) [@shiqicao](https://forums.sui.io/u/shiqicao)\
**Post date:** [August 10, 2023, 11:06pm UTC](https://forums.sui.io/t/why-does-sui-move-build-show-framework-warnnings/44934/1 "2023-08-10T23:06:01Z")

</div>

warning[W09008]: unused function  
┌─ /home/shiqi/.move/https\_\_\_github\_com\_MystenLabs\_sui\_git\_framework\_\_devnet/crates/sui-framework/packages/sui-framework/sources/balance.move:124:9  
│  
124 │ fun create\_staking\_rewards(value: u64, ctx: &TxContext): Balance {  
│ ^^^^^^^^^^^^^^^^^^^^^^ The non-‘public’, non-‘entry’ function ‘create\_staking\_rewards’ is never called. Consider removing it.  
│  
= This warning can be suppressed with ‘#[allow(unused\_function)]’ applied to the ‘module’ or module member (‘const’, ‘fun’, or ‘struct’)

---

<div class="post-metadata">

**Author:** ![fastfrank](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/fastfrank/32/1138_2.png) [@fastfrank](https://forums.sui.io/u/fastfrank)\
**Post date:** [August 11, 2023, 8:25am UTC](https://forums.sui.io/t/why-does-sui-move-build-show-framework-warnnings/44934/2 "2023-08-11T08:25:41Z")

</div>

A non-entry or non-public is only reachable by code within the module and the linter isn’t seeing anything calling the function.

Author should add the appropriate `#[allow(unused_function)]`

Also, changing the dependency rev in Move.toml may eliminate the message.

---

<div class="post-metadata">

**Author:** ![shiqicao](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/shiqicao/32/30473_2.png) [@shiqicao](https://forums.sui.io/u/shiqicao)\
**Post date:** [August 11, 2023, 9:36pm UTC](https://forums.sui.io/t/why-does-sui-move-build-show-framework-warnnings/44934/3 "2023-08-11T21:36:34Z")

</div>

I understand what “unused function” warning is for. I am reporting it shouldn’t not report anything in referenced code. Does Rust compiler report anything from std lib?

---

<div class="post-metadata">

**Author:** ![shiqicao](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/shiqicao/32/30473_2.png) [@shiqicao](https://forums.sui.io/u/shiqicao)\
**Post date:** [August 11, 2023, 11:59pm UTC](https://forums.sui.io/t/why-does-sui-move-build-show-framework-warnnings/44934/4 "2023-08-11T23:59:29Z")

</div>

this only happens during `sui move test`

---

<div class="post-metadata">

**Author:** ![manosliolios](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@manosliolios](https://forums.sui.io/u/manosliolios)\
**Post date:** [August 15, 2023, 4:16pm UTC](https://forums.sui.io/t/why-does-sui-move-build-show-framework-warnnings/44934/5 "2023-08-15T16:16:36Z")

</div>

@shiqicao this shouldn’t be an issue anymore starting on v1.7.0 and up.
