summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKent Sutherland <git@ksuther.com>2014-06-09 21:54:09 -0400
committerKent Sutherland <git@ksuther.com>2014-06-09 21:54:09 -0400
commit3ce900259cbedbd5805dcccfbd4067962d65ebb8 (patch)
treea66caee50af84816e2478e577c96e5473d1f9e3b /src
parent48d4edab5793bf04d457818df16fa5ba6e2b6937 (diff)
downloadlibical-git-3ce900259cbedbd5805dcccfbd4067962d65ebb8.tar.gz
Fixed clang warnings about missing initializers for icalfileset_options structs.
Diffstat (limited to 'src')
-rw-r--r--src/libicalss/icalfileset.c2
-rw-r--r--src/test/process.c2
-rw-r--r--src/test/regression-classify.c2
-rw-r--r--src/test/regression-recur.c2
-rw-r--r--src/test/regression.c4
5 files changed, 6 insertions, 6 deletions
diff --git a/src/libicalss/icalfileset.c b/src/libicalss/icalfileset.c
index 9d739174..19d0e942 100644
--- a/src/libicalss/icalfileset.c
+++ b/src/libicalss/icalfileset.c
@@ -62,7 +62,7 @@
#endif
/** Default options used when NULL is passed to icalset_new() **/
-icalfileset_options icalfileset_options_default = {O_RDWR|O_CREAT, 0644, 0};
+icalfileset_options icalfileset_options_default = {O_RDWR|O_CREAT, 0644, 0, NULL};
int icalfileset_lock(icalfileset *set);
int icalfileset_unlock(icalfileset *set);
diff --git a/src/test/process.c b/src/test/process.c
index 6bd84bdd..2a5bf34d 100644
--- a/src/test/process.c
+++ b/src/test/process.c
@@ -51,7 +51,7 @@ int main(int argc, char* argv[])
int i=0;
const char *class_string;
int dont_remove;
- icalfileset_options options = {O_RDONLY, 0644, 0};
+ icalfileset_options options = {O_RDONLY, 0644, 0, NULL};
icalset* f = icalset_new(ICAL_FILE_SET, TEST_DATADIR "/process-incoming.ics", &options);
icalset* trash = icalset_new_file("trash.ics");
diff --git a/src/test/regression-classify.c b/src/test/regression-classify.c
index 44dde6fa..4ece92b3 100644
--- a/src/test/regression-classify.c
+++ b/src/test/regression-classify.c
@@ -93,7 +93,7 @@ void test_classify(void)
int error_count = 0;
/* Open up the two storage files, one for the incomming components,
one for the calendar */
- icalfileset_options options = {O_RDONLY, 0644, 0};
+ icalfileset_options options = {O_RDONLY, 0644, 0, NULL};
icalset* incoming = icalset_new(ICAL_FILE_SET, TEST_DATADIR "/incoming.ics", &options);
icalset* cal = icalset_new(ICAL_FILE_SET, TEST_DATADIR "/calendar.ics", &options);
icalset* f = icalset_new(ICAL_FILE_SET, TEST_DATADIR "/classify.ics", &options);
diff --git a/src/test/regression-recur.c b/src/test/regression-recur.c
index 6590978a..6cdd71f0 100644
--- a/src/test/regression-recur.c
+++ b/src/test/regression-recur.c
@@ -101,7 +101,7 @@ void test_recur_file()
time_t tt;
char* file;
int num_recurs_found = 0;
- icalfileset_options options = {O_RDONLY, 0644, 0};
+ icalfileset_options options = {O_RDONLY, 0644, 0, NULL};
icalerror_set_error_state(ICAL_PARSE_ERROR, ICAL_ERROR_NONFATAL);
diff --git a/src/test/regression.c b/src/test/regression.c
index e2037523..1249b30c 100644
--- a/src/test/regression.c
+++ b/src/test/regression.c
@@ -1929,7 +1929,7 @@ void test_overlaps()
time_t hh = 1800; /* one half hour */
- icalfileset_options options = {O_RDONLY, 0644, 0};
+ icalfileset_options options = {O_RDONLY, 0644, 0, NULL};
set = icalset_new(ICAL_FILE_SET, TEST_DATADIR "/overlaps.ics", &options);
c = icalcomponent_vanew(
@@ -1990,7 +1990,7 @@ void test_overlaps()
void test_fblist()
{
icalspanlist *sl, *new_sl;
- icalfileset_options options = {O_RDONLY, 0644, 0};
+ icalfileset_options options = {O_RDONLY, 0644, 0, NULL};
icalset *set = icalset_new(ICAL_FILE_SET, TEST_DATADIR "/spanlist.ics", &options);
struct icalperiodtype period;
icalcomponent *comp;