diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-05 08:50:28 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-05 08:50:28 +0000 |
commit | edc562bfa3e97201709f690ae5c738b150dc365c (patch) | |
tree | f503ef4c651ce308e73c294ba085da48f155d66f /Build/source/texk/xdvipdfmx | |
parent | fd915ec757813cf18b6929c70136a63965d31327 (diff) |
build: Avoid various (gcc-4.x) compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@25567 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx')
-rw-r--r-- | Build/source/texk/xdvipdfmx/ChangeLog.TL | 6 | ||||
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/pdfdraw.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/xdvipdfmx/ChangeLog.TL b/Build/source/texk/xdvipdfmx/ChangeLog.TL index 81ba0d4a503..b571158605c 100644 --- a/Build/source/texk/xdvipdfmx/ChangeLog.TL +++ b/Build/source/texk/xdvipdfmx/ChangeLog.TL @@ -1,6 +1,12 @@ ChangeLog.TL: TeX Live (TL) changes for xdvipdfmx ================================================= +2012-03-04 Peter Breitenlohner <peb@mppmu.mpg.de> + + Avoid 'the address of XXX will always evaluate as true' warnings. + * pdfdraw.c (m_stack_depth): Use '(s) != NULL' instead of '(s)'. + Gcc >=4.3 produces identical code but -Wall yields no warning. + 2012-02-28 Peter Breitenlohner <peb@mppmu.mpg.de> * configure.ac: Fixed a typo (no libpaper for TeX Live builds). diff --git a/Build/source/texk/xdvipdfmx/src/pdfdraw.c b/Build/source/texk/xdvipdfmx/src/pdfdraw.c index 9e0a4fad0bd..55de69b1866 100644 --- a/Build/source/texk/xdvipdfmx/src/pdfdraw.c +++ b/Build/source/texk/xdvipdfmx/src/pdfdraw.c @@ -1001,7 +1001,7 @@ m_stack_top (m_stack *stack) return data; } -#define m_stack_depth(s) ((s) ? (s)->size : 0) +#define m_stack_depth(s) (((s) != NULL) ? (s)->size : 0) static m_stack gs_stack; |