NobodyXu/swaystatus

[BUG] Build Error

sclel016 opened this issue · 3 comments

Description
Compiler error when trying to build master(dc196ef) on Fedora 34.

To Reproduce
Steps to reproduce the behavior:

  1. Clone Repository to system running Fedora 34
  2. cd swaystatus/src
  3. make -j4
  4. See error

Expected behavior
Build should complete without errors.

Actual behavior

handle_click_events.cc:83:40: error: use of undeclared identifier 'JSON_TOKENER_ALLOW_TRAILING_CHARS'
        json_tokener_set_flags(parser, JSON_TOKENER_ALLOW_TRAILING_CHARS);

Desktop:

  • Fedora 34
  • swaystatus version: Latest
  • json-c-devel: 0.14-8.fc34

I have removed the use of this flag in main a4f28b9, now it should compile without any error.

Works now, thanks!

No worries.

A new release 0.3.1 is created that fixed this issue.