Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
fix some constant strings so they're actually constant
Browse files Browse the repository at this point in the history
gcc 7 warns about the broken definitions.
https://bugzilla.gnome.org/show_bug.cgi?id=784957
  • Loading branch information
Jonathan Matthew committed Jul 15, 2017
1 parent 1416e4c commit 40753f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/rb-text-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
*
* the following constants are in UTF-8 encoding
*/
static const char const *UNICODE_LRM = "\xE2\x80\x8E";
static const char const *UNICODE_RLM = "\xE2\x80\x8F";
static const char const *UNICODE_LRE = "\xE2\x80\xAA";
static const char const *UNICODE_RLE = "\xE2\x80\xAB";
static const char const *UNICODE_PDF = "\xE2\x80\xAC";
static const char *const UNICODE_LRM = "\xE2\x80\x8E";
static const char *const UNICODE_RLM = "\xE2\x80\x8F";
static const char *const UNICODE_LRE = "\xE2\x80\xAA";
static const char *const UNICODE_RLE = "\xE2\x80\xAB";
static const char *const UNICODE_PDF = "\xE2\x80\xAC";

static void
append_and_free (GString *str, char *text)
Expand Down
2 changes: 1 addition & 1 deletion widgets/rb-header.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ enum
#define STREAM_FORMAT "%s"

/* unicode graphic characters, encoded in UTF-8 */
static const char const *UNICODE_MIDDLE_DOT = "\xC2\xB7";
static const char *const UNICODE_MIDDLE_DOT = "\xC2\xB7";

#define SCROLL_UP_SEEK_OFFSET 5
#define SCROLL_DOWN_SEEK_OFFSET -5
Expand Down

0 comments on commit 40753f9

Please sign in to comment.