summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 13:58:18 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 13:58:18 -0700
commit931ad744c4235157c48f1008c4880dc598eaeb13 (patch)
tree5a9200f93e6ef43a24811d4d19f05ad79c68cc22
parent715914f703187eafd17815d673712c609afaf9a0 (diff)
Fix another -Wdiscarded-qualifiers warning
xclipboard.c: In function ‘SaveToFile’: xclipboard.c:313:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] filename = "clipboard"; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xclipboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xclipboard.c b/xclipboard.c
index f5fdd18..d8d1e2a 100644
--- a/xclipboard.c
+++ b/xclipboard.c
@@ -308,7 +308,7 @@ static void
SaveToFile(Widget w, XEvent *e, String *argv, Cardinal *argc)
{
Arg args[1];
- char *filename;
+ const char *filename;
filename = "clipboard";
if (currentClip->filename)