Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
e9e4dabe
Commit
e9e4dabe
authored
Nov 19, 2016
by
Stefan Schweter
Browse files
Disable misleading-indentation warning in unicode.h (pragma for GCC >= 6)
parent
b19e139d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dlib/unicode/unicode.h
dlib/unicode/unicode.h
+7
-1
No files found.
dlib/unicode/unicode.h
View file @
e9e4dabe
...
@@ -289,7 +289,10 @@ namespace dlib
...
@@ -289,7 +289,10 @@ namespace dlib
}
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
#if defined(__GNUC__) && __GNUC__ >= 6
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#endif
template
<
typename
T
>
template
<
typename
T
>
bool
is_combining_char
(
bool
is_combining_char
(
const
T
ch_
const
T
ch_
...
@@ -478,6 +481,9 @@ namespace dlib
...
@@ -478,6 +481,9 @@ namespace dlib
if
(
ch
<
0xE0100
)
return
false
;
if
(
ch
<
0xE01F0
)
return
true
;
if
(
ch
<
0xE0100
)
return
false
;
if
(
ch
<
0xE01F0
)
return
true
;
return
false
;
return
false
;
}
}
#if defined(__GNUC__) && __GNUC__ >= 6
#pragma GCC diagnostic pop
#endif
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment