Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 180a00634f351a09ceabc5695d8e1acc3e585501 Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | Date: Fri, 12 Dec 2014 12:00:10 +0100 |
| 4 | Subject: [PATCH] glamo.h: use const for jbt6k74_state_path |
| 5 | |
| 6 | * fix build issue with xserver 1.16: |
| 7 | glamo-driver.c:501:32: error: assignment discards 'const' qualifier from pointer target type [-Werror] |
| 8 | |
| 9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| 10 | --- |
| 11 | src/glamo.h | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/src/glamo.h b/src/glamo.h |
| 15 | index 5fd5c04..5e072be 100644 |
| 16 | --- a/src/glamo.h |
| 17 | +++ b/src/glamo.h |
| 18 | @@ -148,7 +148,7 @@ typedef struct { |
| 19 | #endif |
| 20 | |
| 21 | #ifdef JBT6K74_SET_STATE |
| 22 | - char *jbt6k74_state_path; |
| 23 | + const char *jbt6k74_state_path; |
| 24 | char saved_jbt6k74_state[14]; |
| 25 | #endif |
| 26 | |
| 27 | -- |
| 28 | 2.1.3 |
| 29 | |