1
0
Fork 0
forked from poz/modfetch

ignore discarded qualifiers warning upon assigning string literal

ccls still shows me the warning and another one for the `diagnostic
ignored` saying `unknown warning group`, not sure if it's fixable in
ccls, might be time to move to clang/d? although I've heard it has
issues too, not sure
This commit is contained in:
jacekpoz 2024-02-12 00:44:13 +01:00
parent d8a0393fe1
commit a6a1d0c65e
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -23,7 +23,10 @@ semver version(void) { return _version; }
const char *name(void) { return "sep"; }
static size_t length = 8;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
static char *sep_char = "-";
#pragma GCC diagnostic pop
static size_t sep_char_length = 1;
uint8_t init(semver api_ver, char **config) {