diff --git a/sefht.geany b/sefht.geany index e7e86fdbb3ffea72ed01fc420996b18591c90f0d..ff5649cfd8acc5a9e48a880305efd6eaf5658157 100644 --- a/sefht.geany +++ b/sefht.geany @@ -28,17 +28,17 @@ long_line_behaviour=1 long_line_column=72 [files] -current_page=24 +current_page=26 FILE_NAME_0=923;Sh;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fconfigure.ac;0;8 FILE_NAME_1=73;Make;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2FMakefile.am;0;8 -FILE_NAME_2=1082;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Fmain.c;0;8 +FILE_NAME_2=1143;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Fmain.c;0;8 FILE_NAME_3=640;Make;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2FMakefile.am;0;8 FILE_NAME_4=944;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fcms.c;0;8 FILE_NAME_5=1021;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fcms.h;0;8 FILE_NAME_6=4511;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fdata.c;0;8 FILE_NAME_7=1145;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fdata.h;0;8 FILE_NAME_8=1733;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Ffragment.c;0;8 -FILE_NAME_9=1223;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Ffragment.h;0;8 +FILE_NAME_9=2164;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Ffragment.h;0;8 FILE_NAME_10=1296;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fnode_fragment.c;0;8 FILE_NAME_11=2259;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fnode_fragment.h;0;8 FILE_NAME_12=1384;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Ftext.c;0;8 @@ -52,11 +52,11 @@ FILE_NAME_19=1017;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fp FILE_NAME_20=1077;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fmacro.h;0;8 FILE_NAME_21=937;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Fsrc%2Flib%2Fsefht%2Fsefht.h;0;8 FILE_NAME_22=499;Make;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2FMakefile.am;0;8 -FILE_NAME_23=876;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_cms.c;0;8 -FILE_NAME_24=3168;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_data.c;0;8 -FILE_NAME_25=952;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_node_fragment.c;0;8 -FILE_NAME_26=5736;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_text.c;0;8 -FILE_NAME_27=4687;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_validator.c;0;8 +FILE_NAME_23=1510;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_cms.c;0;8 +FILE_NAME_24=3878;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_data.c;0;8 +FILE_NAME_25=14714;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_node_fragment.c;0;8 +FILE_NAME_26=976;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_text.c;0;8 +FILE_NAME_27=6814;C;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftests%2Ftest_validator.c;0;8 FILE_NAME_28=165;None;0;EUTF-8;1;1;0;%2Fhome%2Fjonathan%2FDokumente%2Fprojekte%2Fprgm%2Finternet%2Fweb%2FSeFHT%2Ftodo.txt;0;8 [VTE] diff --git a/src/lib/sefht/fragment.h b/src/lib/sefht/fragment.h index 9ce247596e1c971d0ac1c114c039899b350e0019..bbc506d3d715e600fac0972eb27ed7cc2c990871 100644 --- a/src/lib/sefht/fragment.h +++ b/src/lib/sefht/fragment.h @@ -93,6 +93,7 @@ static inline void free_fragment (struct SH_Fragment * fragment) { + (void) fragment; return; } diff --git a/src/main.c b/src/main.c index 951f44d62eec85a7a3c9d42f82ac90d9a6b8de2a..c869541b2bbe466d5a96aea7c6e45e4a22208490 100644 --- a/src/main.c +++ b/src/main.c @@ -41,6 +41,9 @@ int main(int argc, char **argv) SH_Cms_free (cms); /* shutdown */ + (void) argc; + (void) argv; + (void) page; SH_Data * data; SH_Fragment * root; diff --git a/tests/test_cms.c b/tests/test_cms.c index 8d0ab8cd570e63afbed48fbfdc9200e942cbac77..5366e3c75ffe362917960bbcf9996ac3c1ccb158 100644 --- a/tests/test_cms.c +++ b/tests/test_cms.c @@ -65,7 +65,7 @@ Suite * cms_suite (void) return s; } -int main (int argc, char **argv) +int main (void) { int number_failed; Suite *s; diff --git a/tests/test_data.c b/tests/test_data.c index b4efea46a96408bb5bda1ec5bec4e1ea1d63b336..dcf368e7fd5e5cbac69b17fe886ba99437e110f5 100644 --- a/tests/test_data.c +++ b/tests/test_data.c @@ -156,7 +156,7 @@ Suite * data_suite (void) return s; } -int main (int argc, char **argv) +int main (void) { int number_failed; Suite *s; diff --git a/tests/test_node_fragment.c b/tests/test_node_fragment.c index d50363e142d92e0915cc04a196a6400acf1b99e0..42a42cc1ed58aa7a30b51645558923c98cf363a2 100644 --- a/tests/test_node_fragment.c +++ b/tests/test_node_fragment.c @@ -510,7 +510,7 @@ Suite * fragment_suite (void) return s; } -int main (int argc, char **argv) +int main (void) { int number_failed; Suite *s; diff --git a/tests/test_text.c b/tests/test_text.c index 56b925e56ae4006737a9708576fa2ced30630cc2..e05ca70495b82c9b6a869e18958bf2cafae38ac5 100644 --- a/tests/test_text.c +++ b/tests/test_text.c @@ -29,6 +29,7 @@ /* lower SIZE_MAX as we try to reach it */ #include <limits.h> +#undef SIZE_MAX #define SIZE_MAX 30 #include "macro.h" @@ -155,7 +156,7 @@ START_TEST(test_text_get_length) for (; index[0] <= SIZE_MAX; index[0]++) { - SH_Text_append_string (text, &index, NULL); + SH_Text_append_string (text, index, NULL); } /* length == SIZE_MAX - without error */ @@ -168,7 +169,7 @@ START_TEST(test_text_get_length) ck_assert_int_eq (length, SIZE_MAX); ck_assert_int_eq (status.status, SUCCESS); - SH_Text_append_string (text, &index, NULL); + SH_Text_append_string (text, index, NULL); /* length > SIZE_MAX - without error */ length = SH_Text_get_length (text, NULL); @@ -240,7 +241,7 @@ START_TEST(test_text_get_string) text = SH_Text_new (NULL); for (; index[0] < 100; index[0]++) { - SH_Text_append_string (text, &index, NULL); + SH_Text_append_string (text, index, NULL); } /* single segment - without error */ @@ -315,7 +316,7 @@ START_TEST(test_text_get_range) text = SH_Text_new (NULL); for (; index[0] < 100; index[0]++) { - SH_Text_append_string (text, &index, NULL); + SH_Text_append_string (text, index, NULL); } /* single segment - without error */ @@ -479,7 +480,7 @@ Suite * text_suite (void) return s; } -int main (int argc, char **argv) +int main (void) { int number_failed; Suite *s; diff --git a/tests/test_validator.c b/tests/test_validator.c index a17a27d754e096481fe0494303e5b14e90755c4d..caddb4216f151c18f6caff9e5de44243124062d8 100644 --- a/tests/test_validator.c +++ b/tests/test_validator.c @@ -259,7 +259,7 @@ Suite * validator_suite (void) return s; } -int main (int argc, char **argv) +int main (void) { int number_failed; Suite *s;