Skip to content

Instantly share code, notes, and snippets.

@karanjamutahi
Created February 26, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karanjamutahi/a9490b1af67ef48b6ff7da4763b74b18 to your computer and use it in GitHub Desktop.
Save karanjamutahi/a9490b1af67ef48b6ff7da4763b74b18 to your computer and use it in GitHub Desktop.
/home/thorin/esp/myledc/main/./ledc_example_main.c: In function 'app_main':
/home/thorin/esp/myledc/main/./ledc_example_main.c:164:21: error: redeclaration of 'blue' with no linkage
struct colors_t blue = {0,0,1023};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:7: note: previous declaration of 'blue' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:165:21: error: redeclaration of 'red' with no linkage
struct colors_t red = {1023,0,0};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:13: note: previous declaration of 'red' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:166:21: error: redeclaration of 'green' with no linkage
struct colors_t green = {0, 1023, 0};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:18: note: previous declaration of 'green' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:167:21: error: redeclaration of 'magenta' with no linkage
struct colors_t magenta = {1023,0,1023};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:25: note: previous declaration of 'magenta' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:168:21: error: redeclaration of 'purple' with no linkage
struct colors_t purple = {320,0,320};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:34: note: previous declaration of 'purple' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:169:21: error: redeclaration of 'white' with no linkage
struct colors_t white = {1023,1023,1023};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:55: note: previous declaration of 'white' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:170:21: error: redeclaration of 'aqua' with no linkage
struct colors_t aqua = {0, 1023,1023};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:50: note: previous declaration of 'aqua' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:171:21: error: redeclaration of 'yellow' with no linkage
struct colors_t yellow = {1023,1023,0};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:162:42: note: previous declaration of 'yellow' was here
} blue, red, green, magenta, purple, yellow, aqua,white;
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:170:21: warning: unused variable 'aqua' [-Wunused-variable]
struct colors_t aqua = {0, 1023,1023};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:167:21: warning: unused variable 'magenta' [-Wunused-variable]
struct colors_t magenta = {1023,0,1023};
^
/home/thorin/esp/myledc/main/./ledc_example_main.c:166:21: warning: unused variable 'green' [-Wunused-variable]
struct colors_t green = {0, 1023, 0};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment