OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31d9a7d
)
add type specifier to main function of gencmap utility
author
Ivailo Monev
<xakepa10@gmail.com>
Sat, 19 Dec 2015 21:18:06 +0000
(23:18 +0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sat, 19 Dec 2015 21:18:06 +0000
(23:18 +0200)
fix build with C++11 being set as compiler standard
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
util/gencmap/gencmap.cpp
patch
|
blob
|
history
diff --git
a/util/gencmap/gencmap.cpp
b/util/gencmap/gencmap.cpp
index
9814a84
..
d01ae78
100644
(file)
--- a/
util/gencmap/gencmap.cpp
+++ b/
util/gencmap/gencmap.cpp
@@
-295,7
+295,7
@@
int findapple(Col c)
#define SQ(x) ((x)*(x))
#define D(c1,c2) (SQ(R(c1)-R(c2))+SQ(G(c1)-G(c2))+SQ(B(c1)-B(c2)))
-main()
+
int
main()
{
Col c[256] = {
{ 0,0,0 },
@@
-341,4
+341,5
@@
main()
for (int i=0; i<256; i++) {
printf("0x%06x,%c", qRgb(c[i].r, c[i].g, c[i].b), i%4==3 ? '\n' : ' ');
}
+ return 0;
}