Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
mem/rpm_mem.h: In function 'rpm_status':
mem/rpm_mem.h:308:6: warning: the address of 'qm_status' will always
	evaluate as 'true' [-Waddress]
  if (!RPM_STATUS || !rpm_block)

Credits to Bogdan for the catch!
  • Loading branch information
liviuchircu committed Jan 17, 2020
1 parent 7abd824 commit 8d7db15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mem/rpm_mem.h
Expand Up @@ -305,7 +305,11 @@ inline static void rpm_free(void *_p)

inline static void rpm_status(void)
{
if (!RPM_STATUS || !rpm_block)
if (!rpm_block
#ifndef INLINE_ALLOC
|| !gen_rpm_status
#endif
)
return;

rpm_lock();
Expand Down

0 comments on commit 8d7db15

Please sign in to comment.