summaryrefslogtreecommitdiffstats
path: root/module-template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-09-11 15:39:00 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-09-11 15:39:00 +0000
commite114e0d7e5c2df006fc89d8625274da099327e2e (patch)
tree386f5c994f49e99bd542a1d394de3e044e5e2dde /module-template.h
parenta24e10de791b69b0904b29b0e84bed53c5dc99b9 (diff)
downloadrsyslog-e114e0d7e5c2df006fc89d8625274da099327e2e.tar.gz
rsyslog-e114e0d7e5c2df006fc89d8625274da099327e2e.tar.xz
rsyslog-e114e0d7e5c2df006fc89d8625274da099327e2e.zip
- removed compiler warnings in non-debug modev1-19-6b
- fixed a bug that caused the CStr class to not honor the parameter to return NULL on empty string - causes a mem leak and can create favourable environment for other bugs (as it leads to empty hostnames)
Diffstat (limited to 'module-template.h')
-rw-r--r--module-template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/module-template.h b/module-template.h
index edf84a12..e3fe06de 100644
--- a/module-template.h
+++ b/module-template.h
@@ -175,7 +175,7 @@ static rsRetVal onSelectReadyWrite(void *pModData)\
* continue modularization.
*/
#define BEGINgetWriteFDForSelect \
-static rsRetVal getWriteFDForSelect(void *pModData, short *fd)\
+static rsRetVal getWriteFDForSelect(void *pModData, short __attribute__((unused)) *fd)\
{\
rsRetVal iRet = RS_RET_NONE;\
instanceData *pData = NULL;