# Unable to reset function prototype in hexrays

**URL:** <https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378>\
**Category:** IDA General\
**Created:** [July 2, 2025, 4:06pm UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378 "2025-07-02T16:06:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![revs](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@revs](https://community.hex-rays.com/u/revs)\
**Post date:** [July 2, 2025, 4:06pm UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/1 "2025-07-02T16:06:18Z")

</div>

ida 8.3  
in hexrays if i set empty prototype of function  
a function just clear type of args, return type

ida 9.1  
in hexrays if i set empy prorotype of function  
nothing changes

moreover  
togle to the function prototype editor  
i cant set return type as void

---

<div class="post-metadata">

**Author:** ![ilfak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/ilfak/32/49_2.png) [@ilfak](https://community.hex-rays.com/u/ilfak)\
**Post date:** [July 6, 2025, 5:39am UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/2 "2025-07-06T05:39:01Z")

</div>

Thanks for the report!

---

<div class="post-metadata">

**Author:** ![revs](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@revs](https://community.hex-rays.com/u/revs)\
**Post date:** [July 6, 2025, 9:04am UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/3 "2025-07-06T09:04:54Z")

</div>

so this is bug  
this is bad

---

<div class="post-metadata">

**Author:** ![igor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/igor/32/35_2.png) [@igor](https://community.hex-rays.com/u/igor)\
**Post date:** [July 7, 2025, 2:17pm UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/4 "2025-07-07T14:17:34Z")

</div>

To quickly remove return type for current function, you can use the Ctrl-Shift-R shortcut.

---

<div class="post-metadata">

**Author:** ![revs](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@revs](https://community.hex-rays.com/u/revs)\
**Post date:** [July 7, 2025, 2:24pm UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/5 "2025-07-07T14:24:45Z")

</div>

impossibility of setting the return type void  
this is like an additional bug of the extended menu of setting the type  
by the way, I do not approve of this item of the menu that you recommend  
and I consider it redundant

I more often use resetting all arguments of the function through an empty prototype

---

<div class="post-metadata">

**Author:** ![ilfak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/ilfak/32/49_2.png) [@ilfak](https://community.hex-rays.com/u/ilfak)\
**Post date:** [July 8, 2025, 10:18am UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/6 "2025-07-08T10:18:54Z")

</div>

You are right, these are bugs and we will fix them. Thank you for the report again!

---

<div class="post-metadata">

**Author:** ![igor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/igor/32/35_2.png) [@igor](https://community.hex-rays.com/u/igor)\
**Post date:** [July 17, 2025, 2:54pm UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/7 "2025-07-17T14:54:52Z")

</div>

How can we reproduce the empty prototype issue in 9.1? It seems to work correctly on the examples we tried.

---

<div class="post-metadata">

**Author:** ![revs](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@revs](https://community.hex-rays.com/u/revs)\
**Post date:** [July 17, 2025, 3:27pm UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/8 "2025-07-17T15:27:56Z")

</div>

try reset prototype from hexrays pseudo  
from idaview , yes i can reset prototype, by set empty prototype  
from pseudocode can’t

---

<div class="post-metadata">

**Author:** ![igor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/igor/32/35_2.png) [@igor](https://community.hex-rays.com/u/igor)\
**Post date:** [July 17, 2025, 3:51pm UTC](https://community.hex-rays.com/t/unable-to-reset-function-prototype-in-hexrays/378/9 "2025-07-17T15:51:22Z")

</div>

Thank you, this was the crucial detail we were missing.
