Skip to content

wflinfo: Be more const-correct

Simon McVittie requested to merge smcv/waffle:const-correctness into master
  • wflinfo: Make context_flags more const-correct

    String constants aren't suitable for writing, so assign them to a const char *, not a plain char *.

    Detected by gcc -Wwrite-strings.

  • meson: Detect non-const-correct uses of string constants

  • wflinfo: Move context_flags array into constant data section

    Nothing needs to write to this.

Edited by Simon McVittie

Merge request reports