mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Use more warning options with modern GCCs.
Other minor changes.
This commit is contained in:
parent
dd96bd44d4
commit
0698c5169f
14 changed files with 82 additions and 11 deletions
|
@ -1,9 +1,16 @@
|
|||
2008-10-17 Werner Koch <wk@g10code.com>
|
||||
|
||||
* main.h (idea_cipher_warn): Use do while construct in place of an
|
||||
empty definition.
|
||||
|
||||
2008-10-03 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* main.h, mainproc.c (check_sig_and_print),
|
||||
keylist.c (list_keyblock_print), pkclist.c (do_edit_ownertrust),
|
||||
keyedit.c (menu_showphoto), photoid.c (generate_photo_id,
|
||||
show_photos), misc.c (pct_expando): Add %v and %V expandos so
|
||||
* main.h, mainproc.c (check_sig_and_print)
|
||||
* keylist.c (list_keyblock_print)
|
||||
* pkclist.c (do_edit_ownertrust)
|
||||
* keyedit.c (menu_showphoto)
|
||||
* photoid.c (generate_photo_id, show_photos)
|
||||
* misc.c (pct_expando): Add %v and %V expandos so
|
||||
that displaying photo IDs can show the attribute validity
|
||||
tag (%v) and string (%V). Originally by Daniel Gillmor.
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ int openpgp_md_test_algo( int algo );
|
|||
#ifdef USE_IDEA
|
||||
void idea_cipher_warn( int show );
|
||||
#else
|
||||
#define idea_cipher_warn(a)
|
||||
#define idea_cipher_warn(a) do { } while (0)
|
||||
#endif
|
||||
|
||||
struct expando_args
|
||||
|
|
|
@ -246,7 +246,7 @@ get_it( PKT_pubkey_enc *enc, DEK *dek, PKT_secret_key *sk, u32 *keyid )
|
|||
log_info(_("cipher algorithm %d%s is unknown or disabled\n"),
|
||||
dek->algo, dek->algo == CIPHER_ALGO_IDEA? " (IDEA)":"");
|
||||
if(dek->algo==CIPHER_ALGO_IDEA)
|
||||
idea_cipher_warn(0);
|
||||
idea_cipher_warn (0);
|
||||
}
|
||||
dek->algo = 0;
|
||||
goto leave;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue