[gcc r14-6962] modula2: libm2iso/RTco.cc tidyup use bool instead of int
Gaius Mulley
gaius@gcc.gnu.org
Fri Jan 5 16:40:19 GMT 2024
https://gcc.gnu.org/g:bae3b7919e4231ba1e0488ed5104097b27d5ddfd
commit r14-6962-gbae3b7919e4231ba1e0488ed5104097b27d5ddfd
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date: Fri Jan 5 16:39:46 2024 +0000
modula2: libm2iso/RTco.cc tidyup use bool instead of int
A missing bool/int detected in the global variable initialized.
The majority of ints were replaced by bool but this one was missed.
libgm2/ChangeLog:
* libm2iso/RTco.cc (initialized): Use bool instead of int.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diff:
---
libgm2/libm2iso/RTco.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgm2/libm2iso/RTco.cc b/libgm2/libm2iso/RTco.cc
index 17e8010a496..190c897c0c0 100644
--- a/libgm2/libm2iso/RTco.cc
+++ b/libgm2/libm2iso/RTco.cc
@@ -96,7 +96,7 @@ static threadSem **semArray = NULL;
/* These are used to lock the above module data structures. */
static __gthread_mutex_t lock; /* This is the only mutex for
the whole module. */
-static int initialized = false;
+static bool initialized = false;
extern "C" int EXPORT(init) (void);
More information about the Gcc-cvs
mailing list