diff options
| author | William Ahern <william@solaris.(none)> | 2013-12-27 06:33:56 -0800 |
|---|---|---|
| committer | William Ahern <william@solaris.(none)> | 2013-12-27 06:33:56 -0800 |
| commit | f8a3e72a30728ba185dc1ac8b398de1aeae7b1b6 (patch) | |
| tree | 89379af0ddcc211e9f9b0f243228b543db01ccfa | |
| parent | 369fa2d4120b1dc1a63d0a743203695b0325b888 (diff) | |
| download | luaossl-f8a3e72a30728ba185dc1ac8b398de1aeae7b1b6.tar.gz luaossl-f8a3e72a30728ba185dc1ac8b398de1aeae7b1b6.tar.bz2 luaossl-f8a3e72a30728ba185dc1ac8b398de1aeae7b1b6.zip | |
silence warnings with Solaris Studio compiler
| -rw-r--r-- | GNUmakefile | 5 | ||||
| -rw-r--r-- | src/openssl.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 113ef06..2955d86 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
| @@ -110,6 +110,11 @@ endif | |||
| 110 | ifeq ($(VENDOR_CC_$(d)), sunpro) | 110 | ifeq ($(VENDOR_CC_$(d)), sunpro) |
| 111 | CFLAGS_$(d) += -xcode=pic13 | 111 | CFLAGS_$(d) += -xcode=pic13 |
| 112 | CFLAGS_$(d) += -g | 112 | CFLAGS_$(d) += -g |
| 113 | # | ||
| 114 | # Solaris Studio has a brain-dead function call analyzer which counts | ||
| 115 | # arguments before preprocessor expansion. | ||
| 116 | # | ||
| 117 | CFLAGS_$(d) += -erroff=E_ARGUEMENT_MISMATCH | ||
| 113 | endif | 118 | endif |
| 114 | 119 | ||
| 115 | ifeq ($(VENDOR_OS_$(d)), Darwin) | 120 | ifeq ($(VENDOR_OS_$(d)), Darwin) |
diff --git a/src/openssl.c b/src/openssl.c index 5fcf76d..432c683 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
| @@ -4167,7 +4167,7 @@ static int mt_init(void) { | |||
| 4167 | if (bound && !mt_state.dlref) { | 4167 | if (bound && !mt_state.dlref) { |
| 4168 | Dl_info info; | 4168 | Dl_info info; |
| 4169 | 4169 | ||
| 4170 | if (!dladdr(&luaopen__openssl_rand, &info)) { | 4170 | if (!dladdr((void *)&luaopen__openssl_rand, &info)) { |
| 4171 | error = -1; | 4171 | error = -1; |
| 4172 | goto leave; | 4172 | goto leave; |
| 4173 | } | 4173 | } |
