8000 Warning when building webkitgtk · Issue #306 · elogind/elogind · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Warning when building webkitgtk #306
Open
@Apteryks

Description

@Apteryks

Hi,

When building webkitgtk with elogind support (with headers from elogind made available via e.g.:

              ;; XXX: WebKitGTK makes use of elogind's systemd-compatible
              ;; headers, which are under the include/elogind prefix.  The WTF
              ;; component doesn't propagate the Journald header correctly
              ;; detected (stubs from elogind), hence the following hack (see:
              ;; https://bugs.webkit.org/show_bug.cgi?id=254495).
              (string-append "-DCMAKE_CXX_FLAGS=-I"
                             (search-input-directory
                              %build-inputs "include/elogind"))

There are warnings in the build:

In file included from /gnu/store/dadk3wkrfbwmy3migsr81qiayv84rkii-elogind-255.17/include/elogind/systemd/sd-id128.h:24,
                 from /gnu/store/dadk3wkrfbwmy3migsr81qiayv84rkii-elogind-255.17/include/elogind/systemd/sd-journal.h:26,
                 from /tmp/guix-build-webkitgtk-2.49.1.drv-0/build/WTF/Headers/wtf/Assertions.h:60,
                 from /tmp/guix-build-webkitgtk-2.49.1.drv-0/build/WTF/Headers/wtf/MallocCommon.h:28,
                 from /tmp/guix-build-webkitgtk-2.49.1.drv-0/build/WTF/Headers/wtf/FastMalloc.h:26,
                 from /tmp/guix-build-webkitgtk-2.49.1.drv-0/webkitgtk-2.49.1/Source/WebCore/config.h:47,
                 from /tmp/guix-build-webkitgtk-2.49.1.drv-0/webkitgtk-2.49.1/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp:20:
/gnu/store/dadk3wkrfbwmy3migsr81qiayv84rkii-elogind-255.17/include/elogind/systemd/_sd-common.h:92:7: warning: "__STDC_VERSION__" is not defined, evaluates to 0 [-Wundef]
   92 | #  if __STDC_VERSION__ >= 199901L && !defined(__cplusplus)
      |       ^~~~~~~~~~~~~~~~

It looks like some macro __STDC_VERSION__ is expected to be defined but isn't. Perhaps we should set it to 0 to avoid the warning?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0