Skip to content

Commit

Permalink
Include common.h in qsort.c to fix build warning
Browse files Browse the repository at this point in the history
exports.h no longer includes common.h, which contains assert(). qsort.c
needs to be updated. This fixes this warning:

qsort.c: In function 'qsort':
qsort.c:30:3: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]

Signed-off-by: Simon Glass <[email protected]>
Acked-by: Kumar Gala <[email protected]>
Tested-by: Heiko Schocher <[email protected]>
  • Loading branch information
sjg20 authored and wdenx committed Dec 7, 2011
1 parent f915c93 commit 42c4a23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/qsort.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* bcc and gcc. */

#include <linux/types.h>
#include <common.h>
#include <exports.h>

void qsort(void *base,
Expand Down

0 comments on commit 42c4a23

Please sign in to comment.