diff options
author | Riku Nomoto <riku_nomoto@mail.toyota.co.jp> | 2020-11-20 05:10:05 +0900 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2020-11-20 07:22:11 +0000 |
commit | 2219d0168f8f8418aee784a7542388ef064fa833 (patch) | |
tree | 4e7b989961c56460542270fa6e8623fa32e93726 | |
parent | f244c912f1393e3a1246ccd1c9d591e38ad080f5 (diff) |
common_library: gettid is multiple declaration in cl_error
Compile error occurs if the version is JJ or above.
glibc 2.30 includes gettid() wrapper definition.
So we deleted the 4 lines.
Signed-off-by: Riku Nomoto <riku_nomoto@mail.toyota.co.jp>
Change-Id: Ia9512d146b5f86862296b5b1ea54e3558453e02d
-rwxr-xr-x | nsframework/common_library/client/include/cl_error.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/nsframework/common_library/client/include/cl_error.h b/nsframework/common_library/client/include/cl_error.h index 84bf64e..1441262 100755 --- a/nsframework/common_library/client/include/cl_error.h +++ b/nsframework/common_library/client/include/cl_error.h @@ -21,10 +21,6 @@ #include <unistd.h> #include <asm/unistd.h> -static inline int gettid(void) { // NOLINT(readability/nolint) - return (int)syscall(__NR_gettid); // NOLINT(readability/casting) -} - #define _num_to_str(num) #num #define num_to_str(num) _num_to_str(num) #define CL_PERROR(msg) \ |