Avoid "type qualifiers ignored on function return type" warning

PiperOrigin-RevId: 249961705
This commit is contained in:
Tiezhen WANG 2019-05-25 02:40:33 -07:00 committed by TensorFlower Gardener
parent 50af31101b
commit 4b9fe84218
3 changed files with 6 additions and 6 deletions
tensorflow

View File

@ -132,8 +132,8 @@ extern const char* tf_compiler_version();
// If no git repository, this will be "internal".
extern const char* tf_git_version();
// Value of the _GLIBCXX_USE_CXX11_ABI flag, or 0 if it's not set.
extern const int tf_cxx11_abi_flag();
extern int tf_cxx11_abi_flag();
// Returns 1 if build is monolithic, or 0 otherwise.
extern const int tf_monolithic_build();
extern int tf_monolithic_build();
#endif // TENSORFLOW_CORE_PUBLIC_VERSION_H_

View File

@ -203,14 +203,14 @@ const char* tf_compiler_version() {
return __VERSION__;
#endif
}
const int tf_cxx11_abi_flag() {
int tf_cxx11_abi_flag() {
#ifdef _GLIBCXX_USE_CXX11_ABI
return _GLIBCXX_USE_CXX11_ABI;
#else
return 0;
#endif
}
const int tf_monolithic_build() {
int tf_monolithic_build() {
#ifdef TENSORFLOW_MONOLITHIC_BUILD
return 1;
#else

View File

@ -37,14 +37,14 @@ const char* tf_compiler_version() {
return __VERSION__;
#endif
}
const int tf_cxx11_abi_flag() {
int tf_cxx11_abi_flag() {
#ifdef _GLIBCXX_USE_CXX11_ABI
return _GLIBCXX_USE_CXX11_ABI;
#else
return 0;
#endif
}
const int tf_monolithic_build() {
int tf_monolithic_build() {
#ifdef TENSORFLOW_MONOLITHIC_BUILD
return 1;
#else