Skip to content

Commit

Permalink
Remove const qualifier on return type
Browse files Browse the repository at this point in the history
These does nothing and causes an warning with -Wextra.
  • Loading branch information
yuyichao authored and staticfloat committed Jun 16, 2022
1 parent aa7a378 commit 2820b41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/deepbindless.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ uint8_t use_deepbind = 0x00;
#else
uint8_t use_deepbind = 0x01;
#endif
LBT_DLLEXPORT const uint8_t lbt_get_use_deepbind() {
LBT_DLLEXPORT uint8_t lbt_get_use_deepbind() {
return use_deepbind;
}

Expand Down
2 changes: 1 addition & 1 deletion src/libblastrampoline.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ LBT_DLLEXPORT void lbt_set_default_func(const void * addr);
* `LBT_USE_RTLD_DEEPBIND=0` in their environment. This function returns `0x01` if it will
* use `RTLD_DEEPBIND` when loading a library, and `0x00` otherwise.
*/
LBT_DLLEXPORT const uint8_t lbt_get_use_deepbind();
LBT_DLLEXPORT uint8_t lbt_get_use_deepbind();

/*
* Returns the currently-configured forward target for the given `symbol_name`, according to the
Expand Down

0 comments on commit 2820b41

Please sign in to comment.