]> git.llucax.com Git - software/eventxx.git/blobdiff - test/test-eof.cpp
Avoid a weird gcc warning when compiling with optimizations.
[software/eventxx.git] / test / test-eof.cpp
index 4b30013783915b1cb8a51badc577afc4ea11dc35..c1c05db59219f0cf8bf73258ed5f34e51b5da102 100644 (file)
@@ -50,7 +50,7 @@ read_cb(int fd, short event, void *arg)
 int
 main (int argc, char **argv)
 {
-       char *test = "test string";
+       const char* test = "test string";
        int pair[2];
 
        if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)