Project

General

Profile

Bug #5526

One more gcc warning for cmd/power

Added by Gary Mills almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2015-01-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

On the SPARC platform, one more gcc warning for cmd/power appears:


handlers.c: In function 'ztop':
handlers.c:1018: error: suggest parentheses around assignment used as truth value [-Wparentheses]

This function is inside #ifdef sparc/#endif conditionals. The fix is simply to change line 1018 to read:


if ((p = strchr(pool_name, '/')) != NULL)

Also available in: Atom PDF