Selaa lähdekoodia

Include common.h in qsort.c to fix build warning

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 <sjg@chromium.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Tested-by: Heiko Schocher <hs@denx.de>
Simon Glass 13 vuotta sitten
vanhempi
commit
42c4a23a55
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      lib/qsort.c

+ 1 - 0
lib/qsort.c

@@ -16,6 +16,7 @@
  * bcc and gcc. */
 
 #include <linux/types.h>
+#include <common.h>
 #include <exports.h>
 
 void qsort(void  *base,