[PATCH v2] linux: Detect the battery of bluetooth input devices.

Peter Wu lekensteyn at gmail.com
Mon Sep 2 02:43:44 PDT 2013


Hi,

On Monday 02 September 2013 17:41:17 Shih-Yuan Lee wrote:
> I use "if (foo = bar)" to replace the following two lines.
> 
> foo = bar
> if (foo != NULL)

I meant using this instead:

    if ((foo = bar))

GCC warning:
warning: suggest parentheses around assignment used as truth value [-
Wparentheses]

Regards,
Peter


More information about the devkit-devel mailing list