Skip to content

Commit

Permalink
Fix build warnings in Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Jan 28, 2024
1 parent 23d3b81 commit 5c0f0b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions stb/stb_vorbis.c
Original file line number Diff line number Diff line change
Expand Up @@ -3094,7 +3094,7 @@ static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *f
if (lx != hx)
draw_line(target, lx,ly, hx,hy, n2);
CHECK(f);
lx = hx, ly = hy;
(void)(lx = hx), ly = hy;
}
}
if (lx < n2) {
Expand Down Expand Up @@ -3335,14 +3335,14 @@ static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start,
float a2,m2;
if (m[j] > 0)
if (a[j] > 0)
m2 = m[j], a2 = m[j] - a[j];
(void)(m2 = m[j]), a2 = m[j] - a[j];
else
a2 = m[j], m2 = m[j] + a[j];
(void)(a2 = m[j]), m2 = m[j] + a[j];
else
if (a[j] > 0)
m2 = m[j], a2 = m[j] + a[j];
(void)(m2 = m[j]), a2 = m[j] + a[j];
else
a2 = m[j], m2 = m[j] - a[j];
(void)(a2 = m[j]), m2 = m[j] - a[j];
m[j] = m2;
a[j] = a2;
}
Expand Down
5 changes: 2 additions & 3 deletions tidy/access.c
Original file line number Diff line number Diff line change
Expand Up @@ -3195,9 +3195,8 @@ static void CheckForListElements( TidyDocImpl* doc, Node* node )
/******************************************************
* CheckListUsage
*
* Ensures that lists are properly used. <ol> and <ul>
* must contain <li> within itself, and <li> must not be
* by itself.
* Ensures that lists are properly used. The tags "ol" and "ul"
* must contain "li" within itself, and "li" must not be by itself.
******************************************************/

static void CheckListUsage( TidyDocImpl* doc, Node* node )
Expand Down
2 changes: 1 addition & 1 deletion tidy/tidy.h
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ TIDY_EXPORT Bool TIDY_CALL tidyOptionIsList( TidyOption opt );

/** Is Option read-only? Some options (mainly internal use only options) are
** read-only.
** @deprecated This is no longer a valid test for the public API; instead
** This is no longer a valid test for the public API; instead
** you should test an option's availability using `tidyOptGetCategory()`
** against `TidyInternalCategory`. This API will be removed!
** @param opt An instance of a TidyOption to query.
Expand Down

0 comments on commit 5c0f0b9

Please sign in to comment.