Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Warning about redefinition of STDC_HEADERS when integrating glog #834

@joeyparrish

Description

@joeyparrish

I get the following warning:

[  0%] Building CXX object packager/third_party/glog/CMakeFiles/glogbase.dir/src/demangle.cc.o
In file included from /shaka-packager/packager/third_party/glog/src/demangle.h:73,
                 from /shaka-packager/packager/third_party/glog/src/demangle.cc:39:
/shaka-packager/build/packager/third_party/glog/config.h:184: warning: "STDC_HEADERS" redefined
 #define STDC_HEADERS
 
In file included from /usr/include/c++/8/cstdio:41,
                 from /shaka-packager/packager/third_party/glog/src/demangle.cc:37:
/usr/include/x86_64-linux-gnu/c++/8/bits/c++config.h:1377: note: this is the location of the previous definition
 #define STDC_HEADERS 1

It appears to be because STDC_HEADERS is defined without a value. If I change that in config.h.cmake.in, the warning goes away.

I'd like to be able to build my project with warnings as errors, so I'd like to make glog compile cleanly without warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions