diff --git a/doc/cc65.sgml b/doc/cc65.sgml
index d08e8418d..781e460a8 100644
--- a/doc/cc65.sgml
+++ b/doc/cc65.sgml
@@ -1370,7 +1370,7 @@ sequences of the input.
Example:
/* Use a space wherever an 'a' occurs in ISO-8859-1 source */
- #pragma charmap (0x61, 0x20);
+ #pragma charmap (0x61, 0x20)
diff --git a/libsrc/common/strftime.c b/libsrc/common/strftime.c
index 38ea4850e..2f3cadc2e 100644
--- a/libsrc/common/strftime.c
+++ b/libsrc/common/strftime.c
@@ -40,7 +40,7 @@
/* Use static local variables for speed */
-#pragma static-locals (on);
+#pragma static-locals (on)
diff --git a/samples/cbm/fire.c b/samples/cbm/fire.c
index 40eff0707..1eae086da 100644
--- a/samples/cbm/fire.c
+++ b/samples/cbm/fire.c
@@ -56,7 +56,7 @@
/* Use static local variables for speed */
-#pragma static-locals (1);
+#pragma static-locals (1)
diff --git a/samples/cbm/plasma.c b/samples/cbm/plasma.c
index f48d6dc77..5c0b901f7 100644
--- a/samples/cbm/plasma.c
+++ b/samples/cbm/plasma.c
@@ -51,7 +51,7 @@
/* Use static local variables for speed */
-#pragma static-locals (1);
+#pragma static-locals (1)
static const unsigned char sinustable[0x100] = {
diff --git a/samples/geos/overlay-demo.c b/samples/geos/overlay-demo.c
index 73ab0e3c0..e3e92e6c2 100644
--- a/samples/geos/overlay-demo.c
+++ b/samples/geos/overlay-demo.c
@@ -27,7 +27,7 @@ void show(char *name)
** rather place the all the code of certain source files into the overlay by
** compiling them with --code-name OVERLAY1.
*/
-#pragma code-name(push, "OVERLAY1");
+#pragma code-name(push, "OVERLAY1")
void foo(void)
{
@@ -39,27 +39,27 @@ void foo(void)
show("One");
}
-#pragma code-name(pop);
+#pragma code-name(pop)
-#pragma code-name(push, "OVERLAY2");
+#pragma code-name(push, "OVERLAY2")
void bar(void)
{
show("Two");
}
-#pragma code-name(pop);
+#pragma code-name(pop)
-#pragma code-name(push, "OVERLAY3");
+#pragma code-name(push, "OVERLAY3")
void foobar (void)
{
show("Three");
}
-#pragma code-name(pop);
+#pragma code-name(pop)
void main(int /*argc*/, char *argv[])
diff --git a/samples/lynx/mandelbrot.c b/samples/lynx/mandelbrot.c
index ce49fbf7a..27ac7d340 100644
--- a/samples/lynx/mandelbrot.c
+++ b/samples/lynx/mandelbrot.c
@@ -26,7 +26,7 @@
#define divfp(_a,_b) ((((signed long)_a)<