[Pcsclite-git-commit] [PCSC] 01/06: readerfactory: fix compilation warning on SunOS
Ludovic Rousseau
rousseau at moszumanska.debian.org
Sun Apr 24 17:08:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository PCSC.
commit 890f7edbd931467fd381739257ac1e1f335eb64a
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sat Apr 23 15:57:46 2016 +0200
readerfactory: fix compilation warning on SunOS
The code uses alloca() so we #include "alloca.h"
readerfactory.c: In function 'RFAddReader':
readerfactory.c:211:2: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
readerName = alloca(strlen(readerNameLong)+1);
^
readerfactory.c:211:15: warning: incompatible implicit declaration of built-in function 'alloca'
readerName = alloca(strlen(readerNameLong)+1);
^
---
src/readerfactory.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/readerfactory.c b/src/readerfactory.c
index 14cd42f..df855ea 100644
--- a/src/readerfactory.c
+++ b/src/readerfactory.c
@@ -49,6 +49,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
+#include "alloca.h"
#include "misc.h"
#include "pcscd.h"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git
More information about the Pcsclite-cvs-commit
mailing list