diff --git a/Makefile b/Makefile index f3382bf..18699cb 100644 --- a/Makefile +++ b/Makefile @@ -34,4 +34,4 @@ TEMPLATES += db/turboPmac.db DBDS += sinqMotor/src/sinqMotor.dbd DBDS += src/turboPmac.dbd -USR_CFLAGS += -Wall -Wextra -Weffc++ -Wunused-result -Werror # -Wpedantic // Does not work because EPICS macros trigger warnings \ No newline at end of file +USR_CFLAGS += -Wall -Wextra -Weffc++ -Wunused-result -Werror -fvisibility=hidden # -Wpedantic // Does not work because EPICS macros trigger warnings \ No newline at end of file diff --git a/src/turboPmacController.h b/src/turboPmacController.h index f9a8915..106bef8 100644 --- a/src/turboPmacController.h +++ b/src/turboPmacController.h @@ -93,7 +93,8 @@ class turboPmacController : public sinqController { * @return asynStatus */ asynStatus writeRead(int axisNo, const char *command, char *response, - int numExpectedResponses); + int numExpectedResponses) + __attribute__((visibility("hidden"))); /** * @brief Specialized version of sinqController::couldNotParseResponse