Avoid "type qualifiers ignored on function return type" warning
PiperOrigin-RevId: 249961705
This commit is contained in:
parent
50af31101b
commit
4b9fe84218
tensorflow
@ -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_
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user