From 4f972fd53dd91268650bded9f4af651f42f64dcb Mon Sep 17 00:00:00 2001 From: smathis Date: Mon, 11 Aug 2025 16:46:22 +0200 Subject: [PATCH] Hide symbols via compilerflag --- Makefile | 2 +- src/turboPmacController.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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