aantron / better-enums

C++ compile-time enum to string, iteration, in a single header file
http://aantron.github.io/better-enums
BSD 2-Clause "Simplified" License
1.65k stars 172 forks source link

Add unused attribute to free functions #27

Closed cheparukhin closed 8 years ago

cheparukhin commented 8 years ago

Generated free functions cause unused function warnings, which are suppressed using __attribute__((__unused__)) from now.

aantron commented 8 years ago

LGTM. Feel free to merge.

Can you say what flag/compiler combination was emitting these warnings? We should probably add it to testing.

cheparukhin commented 8 years ago

@aantron clang-3.8 with -Wall, current tests don't check it