Procházet zdrojové kódy

caca: avoid nested externs

common-image.c:164:18: warning: nested extern declaration of ‘_caca_alloc2d’ [-Wnested-externs]
pull/70/head
Johannes Kauffmann před 2 roky
rodič
revize
f57b0d65cf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      caca/caca.c

+ 1
- 1
caca/caca.c Zobrazit soubor

@@ -284,7 +284,7 @@ char const * caca_get_version(void)
* XXX: The following functions are private.
*/

extern void *_caca_alloc2d(size_t width, size_t height, size_t elem_size)
void *_caca_alloc2d(size_t width, size_t height, size_t elem_size)
{
if (width == 0 || height == 0 || elem_size == 0 || SIZE_MAX / width / height < elem_size)
return NULL;


Načítá se…
Zrušit
Uložit