geommer / yabar

A modern and lightweight status bar for X window managers.
MIT License
681 stars 49 forks source link

Remove duplicate const declaration. #163

Closed pmatos closed 7 years ago

pmatos commented 7 years ago

This is regarding one of the warnings that both gcc and clang report:

cc -std=c99 -Iinclude -pedantic -Werror -Wall -Os `pkg-config --cflags pango pangocairo libconfig gdk-pixbuf-2.0 alsa` -DVERSION=\"0.4.0-147-gce1dea3\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL -DYA_ENV_VARS -DYA_INTERNAL_EWMH -DYA_ICON -DYA_NOWIN_COL -DYA_MUTEX -DYA_VAR_WIDTH -DYA_BSPWM  -c -o src/intern_blks/ya_intern.o src/intern_blks/ya_intern.c
src/intern_blks/ya_intern.c:756:19: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier]
 static const char const symbols[5] = {0, 'K', 'M', 'G', 'T'};
                   ^~~~~
NBonaparte commented 7 years ago

Thanks!