* [PATCH 1/2] crypto/af_alg: port to strict C compilers
@ 2019-05-11 15:32 Paul Eggert
2019-05-11 15:32 ` [PATCH 2/2] fpucw: port to gcc -pedantic Paul Eggert
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggert @ 2019-05-11 15:32 UTC (permalink / raw)
To: bug-gnulib; +Cc: Paul Eggert
* lib/af_alg.c: Include af_alg.h regardless, so that the
compilation unit is nonempty.
---
ChangeLog | 6 ++++++
lib/af_alg.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c9cb89306..fa615c1f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-05-11 Paul Eggert <eggert@cs.ucla.edu>
+
+ crypto/af_alg: port to strict C compilers
+ * lib/af_alg.c: Include af_alg.h regardless, so that the
+ compilation unit is nonempty.
+
2019-05-10 Bruno Haible <bruno@clisp.org>
base64: Avoid false positive warning from Coverity.
diff --git a/lib/af_alg.c b/lib/af_alg.c
index 914ef5709..8fa131624 100644
--- a/lib/af_alg.c
+++ b/lib/af_alg.c
@@ -18,10 +18,10 @@
#include <config.h>
-#if USE_LINUX_CRYPTO_API
-
#include "af_alg.h"
+#if USE_LINUX_CRYPTO_API
+
#include <unistd.h>
#include <string.h>
#include <stdio.h>
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] fpucw: port to gcc -pedantic
2019-05-11 15:32 [PATCH 1/2] crypto/af_alg: port to strict C compilers Paul Eggert
@ 2019-05-11 15:32 ` Paul Eggert
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2019-05-11 15:32 UTC (permalink / raw)
To: bug-gnulib; +Cc: Paul Eggert
* lib/fpucw.h (GET_FPUCW, SET_FPUCW):
Use __extension__ if using ({ ... }).
---
ChangeLog | 4 ++++
lib/fpucw.h | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fa615c1f7..e8934325e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2019-05-11 Paul Eggert <eggert@cs.ucla.edu>
+ fpucw: port to gcc -pedantic
+ * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
+ Use __extension__ if using ({ ... }).
+
crypto/af_alg: port to strict C compilers
* lib/af_alg.c: Include af_alg.h regardless, so that the
compilation unit is nonempty.
diff --git a/lib/fpucw.h b/lib/fpucw.h
index caa51fe3b..c3dfc9e6d 100644
--- a/lib/fpucw.h
+++ b/lib/fpucw.h
@@ -70,12 +70,12 @@ typedef unsigned short fpucw_t; /* glibc calls this fpu_control_t */
# define FPU_PC_DOUBLE 0x200 /* glibc calls this _FPU_DOUBLE */
# define FPU_PC_EXTENDED 0x300 /* glibc calls this _FPU_EXTENDED */
-# define GET_FPUCW() \
+# define GET_FPUCW() __extension__ \
({ fpucw_t _cw; \
__asm__ __volatile__ ("fnstcw %0" : "=m" (*&_cw)); \
_cw; \
})
-# define SET_FPUCW(word) \
+# define SET_FPUCW(word) __extension__ \
(void)({ fpucw_t _ncw = (word); \
__asm__ __volatile__ ("fldcw %0" : : "m" (*&_ncw)); \
})
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-11 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-11 15:32 [PATCH 1/2] crypto/af_alg: port to strict C compilers Paul Eggert
2019-05-11 15:32 ` [PATCH 2/2] fpucw: port to gcc -pedantic Paul Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).