1. 11 5月, 2015 9 次提交
  2. 01 5月, 2015 2 次提交
    • D
      crypto: testmgr - Wrap the LHS in expressions of the form !x == y · 09e21784
      David Howells 提交于
      In the test manager, there are a number of if-statements with expressions of
      the form !x == y that incur warnings with gcc-5 of the following form:
      
      ../crypto/testmgr.c: In function '__test_aead':
      ../crypto/testmgr.c:523:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
         if (!ret == template[i].fail) {
                  ^
      
      By converting the 'fail' member of struct aead_testvec and struct
      cipher_testvec to a bool, we can get rid of the warnings.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      09e21784
    • D
      crypto: pcomp - Constify (de)compression parameters · f94a3597
      David Howells 提交于
      In testmgr, struct pcomp_testvec takes a non-const 'params' field, which is
      pointed to a const deflate_comp_params or deflate_decomp_params object.  With
      gcc-5 this incurs the following warnings:
      
      In file included from ../crypto/testmgr.c:44:0:
      ../crypto/testmgr.h:28736:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_comp_params,
                   ^
      ../crypto/testmgr.h:28748:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_comp_params,
                   ^
      ../crypto/testmgr.h:28776:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_decomp_params,
                   ^
      ../crypto/testmgr.h:28800:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_decomp_params,
                   ^
      
      Fix this by making the parameters pointer const and constifying the things
      that use it.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f94a3597
  3. 28 4月, 2015 1 次提交
  4. 26 4月, 2015 6 次提交
  5. 23 4月, 2015 16 次提交
  6. 22 4月, 2015 6 次提交