summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorPeter Eisentraut2012-02-28 10:42:08 +0000
committerPeter Eisentraut2012-02-28 10:42:08 +0000
commit973e9fb294dc05a384ecae7623923ae53cb81806 (patch)
tree8f1499cd7e9de9b63e1ccff755d36393b1eb4aa7 /src/include/c.h
parent41e3c94cac0e68257126b2d264dc5e877e892490 (diff)
Add const qualifiers where they are accidentally cast away
This only produces warnings under -Wcast-qual, but it's more correct and consistent in any case.
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 7396adbaa77..82acd14a9b4 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -478,7 +478,7 @@ typedef NameData *Name;
* PointerIsValid
* True iff pointer is valid.
*/
-#define PointerIsValid(pointer) ((void*)(pointer) != NULL)
+#define PointerIsValid(pointer) ((const void*)(pointer) != NULL)
/*
* PointerIsAligned