Commit 19aefcc
committed
Print stderr message if pthread_setname_np() fail
This get rid of this compile time warning:
Compiling rtapi/uspace_rtapi_app.cc
rtapi/uspace_rtapi_app.cc: In function ‘void {anonymous}::set_namef(const char*, ...)’:
rtapi/uspace_rtapi_app.cc:107:9: warning: unused variable ‘res’ [-Wunused-variable]
107 | int res = pthread_setname_np(pthread_self(), buf);
| ^~~1 parent 973ecc3 commit 19aefcc
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
0 commit comments