diff options
author | Yunlian Jiang <yunlian@chromium.org> | 2014-02-05 16:08:07 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-02-06 03:18:15 -0600 |
commit | c48b97b1187971a7b545921bfdc961e9ad53f0a6 (patch) | |
tree | 55a37d01b439c5e76817d762ef5ca193f7afd922 /docs/reference/api/ModemManager-dbus-reference.xml | |
parent | 9447527c357a91bbd3660274c41fd1b802e4cf84 (diff) |
libqcdm: use NULL instead of 0 for empty pointer
When I use clang 3.5 to build it, I got
commands.c:1444:16: error: expression which evaluates to zero treated as a
null
pointer constant of type 'QcdmResult *' (aka 'struct QcdmResult *')
[-Werror,-Wnon-literal-null-conversion]
return FALSE;
^~~~~
./utils.h:29:15: note: expanded from macro 'FALSE'
#define FALSE ((u_int8_t) 0)
^~~~~~~~~~~~~~
commands.c:1464:20: error: expression which evaluates to zero treated as a
null
pointer constant of type 'QcdmResult *' (aka 'struct QcdmResult *')
[-Werror,-Wnon-literal-null-conversion]
return FALSE;
^~~~~
./utils.h:29:15: note: expanded from macro 'FALSE'
#define FALSE ((u_int8_t) 0)
^~~~~~~~~~~~~~
2 errors generated.
make[3]: *** [libqcdm_la-commands.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
Below is the patch that fixes it
Diffstat (limited to 'docs/reference/api/ModemManager-dbus-reference.xml')
0 files changed, 0 insertions, 0 deletions