diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-20 14:58:56 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-20 15:06:13 +0100 |
| commit | c5f787cb8cd6d2841e3d46446c0a571eade891dc (patch) | |
| tree | c26c4759b568ce9f0b8ca785976c6a70176ee3e7 /crypto_aead/lilliputaei128v1 | |
| parent | e88dab71fe5ba3b2254497ab38e740db52b7b26b (diff) | |
| download | lilliput-ae-implem-c5f787cb8cd6d2841e3d46446c0a571eade891dc.tar.xz | |
Refus des avertissements de compilation
Viens de me faire bouffer par un bug de formattage ; il était signalé
par un warning, mais noyé sous la masse. Stop.
Diffstat (limited to 'crypto_aead/lilliputaei128v1')
| -rw-r--r-- | crypto_aead/lilliputaei128v1/ref/Makefile | 6 | ||||
| -rw-r--r-- | crypto_aead/lilliputaei128v1/ref/tweakey.c | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/Makefile b/crypto_aead/lilliputaei128v1/ref/Makefile index 2d1f124..30d6e12 100644 --- a/crypto_aead/lilliputaei128v1/ref/Makefile +++ b/crypto_aead/lilliputaei128v1/ref/Makefile @@ -13,12 +13,12 @@ results: # TODO: should add order-only prerequisite to remove mkdir from this target results/%.o: %.c @mkdir -p $(dir $@) - gcc -c -I. $< $(nist_flags) -o $@ + gcc -c -I. $< $(nist_flags) -Werror -o $@ results/test-%: results/test/%.o results/test-tweakey: results/test/tweakey.o results/tweakey.o | results - gcc $^ $(nist_flags) -o $@ + gcc $^ $(nist_flags) -Werror -o $@ test-tweakey: results/test-tweakey mkdir -p results/tweakey @@ -28,3 +28,5 @@ test-tweakey: results/test-tweakey results/test-tweakey.o: tweakey.h results/tweakey.o: tweakey.h + +# TODO: add valgrind diff --git a/crypto_aead/lilliputaei128v1/ref/tweakey.c b/crypto_aead/lilliputaei128v1/ref/tweakey.c index adb6d1e..79fa225 100644 --- a/crypto_aead/lilliputaei128v1/ref/tweakey.c +++ b/crypto_aead/lilliputaei128v1/ref/tweakey.c @@ -41,17 +41,16 @@ void tweakey_state_init( void tweakey_state_extract( - const tweakey_state *TK, - uint8_t round_tweakey[ROUND_TWEAKEY_BYTES], /* output */ - uint8_t i /* round constant */ + __attribute__((unused)) const tweakey_state *TK, + __attribute__((unused)) uint8_t round_tweakey[ROUND_TWEAKEY_BYTES], /* output */ + __attribute__((unused)) uint8_t i /* round constant */ ) { } -void tweakey_state_update(tweakey_state *TK) +void tweakey_state_update(__attribute__((unused)) tweakey_state *TK) { } - |
