clean up compilaton options

This commit is contained in:
Venelin
2024-06-10 12:25:01 +03:00
parent 1386b967d3
commit a096a2a34c
4 changed files with 9 additions and 18 deletions
+1 -4
View File
@@ -3,10 +3,7 @@
language='
-std=c++17
-fno-rtti
-fno-exceptions
-fno-non-call-exceptions
-fno-common'
# force each global variable to be only defined once
-fno-exceptions'
warnings='
-Wall
+1 -8
View File
@@ -8,26 +8,19 @@ PREFIX=/usr/local
language='
-std=c++17
-fno-rtti
-fno-exceptions
-fno-non-call-exceptions
-fno-common' # force each global variable to be only defined once
-fno-exceptions'
optimizations='
-Ofast
-flto
-fipa-pta
-fgcse-sm
-fgcse-las
-march=native'
warnings='
-Wall
-Wextra
-Wno-implicit-fallthrough
-Wno-multichar'
# -Wpedantic' #-fanalyzer
other='-fno-fat-lto-objects'
# Compile
+5 -4
View File
@@ -223,7 +223,7 @@ namespace /* internal */
type = ATR_SPOUSES;
break;
default:
U16 cyr = ((U8)t.begin[0] << 8) | (U8)t.begin[1]; /* assuming char signed? */
U16 cyr = ((U8)t.begin[0] << 8) | (U8)t.begin[1];
switch(cyr) /* check for cyrilic attribure */
{
case 'д':
@@ -238,6 +238,7 @@ namespace /* internal */
case 'с':
type = ATR_SPOUSES;
break;
case 'AB':
default:
err_illegal_attribute(t);
}
@@ -338,7 +339,7 @@ namespace /* internal */
}
else if(it->size() == 2)
{
U16 cyr = ((U8)it->begin[0] << 8) | (U8)it->begin[1]; /* assuming char signed? */
U16 cyr = ((U8)it->begin[0] << 8) | (U8)it->begin[1];
if(cyr == 'М')
res = M;
else if(cyr == 'Ж')
@@ -543,10 +544,10 @@ namespace /* internal */
case ATR_SPOUSES:
spouses = parseSpouses(it, end);
break;
case NEW_LINE:
case NEW_LINE: // current person is done
++line;
++it;
case STRING:
case STRING: // next person starts here
/* todo str prevent copy */
cur_tree->addPerson(name.c_str(), sex,
parents.first, parents.second, birth, death);
+2 -2
View File
@@ -11,7 +11,7 @@ types - screenCoord...
Visualization:
- zooming
- snap to selection/scroll with selection
- horizontal navigation between cousins
- horizontal navigation between cousins - finish
- color on different consoles
- screen resize
- empty tree
@@ -32,7 +32,7 @@ Compilation
Refactoring
- comment style /*
- check return codes - setlocale
- check return codes - setlocale,
test
- no Adam