This library contains code that extends and simplifies different operations
for C language based programs.
Revisión | df4e3adb77d0616c94a3fdd8240cc6064ac28994 (tree) |
---|---|
Tiempo | 2023-03-10 08:03:52 |
Autor | Sergey Gusarov <laborer2008@gmai...> |
Commiter | Sergey Gusarov |
test_enum_factory: fixed gcc+clang warning
@@ -33,6 +33,14 @@ | ||
33 | 33 | |
34 | 34 | void testCompile(void) |
35 | 35 | { |
36 | +#ifdef CT_GCC_IGNORE_WARNING | |
37 | + /* | |
38 | + Warning here is caused because we use standalone variable str. It's better to use "const char* str" on demand. | |
39 | + But such a code could be unsupported by some old C99 partialy compatible compilers(like Visual C) | |
40 | + */ | |
41 | + CT_GCC_IGNORE_WARNING(-Wdiscarded-qualifiers) | |
42 | +#endif | |
43 | + | |
36 | 44 | enum ColorsEnum colorsEnum; |
37 | 45 | char* str; |
38 | 46 |