Skip to content

Commit

Permalink
prevent empty translation units for compilers that don't like them
Browse files Browse the repository at this point in the history
  • Loading branch information
pittma committed Oct 30, 2023
1 parent 64b3a80 commit 5c2a012
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion crypto/fipsmodule/bn/rsaz_exp_x2.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@
#include "rsaz_exp.h"

#ifndef RSAZ_ENABLED
NON_EMPTY_TRANSLATION_UNIT
/*
* This appears in openssl as just:
*
* NON_EMPTY_TRANSLATION_UNIT
*
* This macro is defined in include/openssl/macros.h like so:
*
* // Sometimes OPENSSL_NO_xxx ends up with an empty file and some
* // compilers don't like that. This will hopefully silence them.
* # define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;
*/
static void *dummy = &dummy;
#else
# include <assert.h>
# include <string.h>
Expand Down

0 comments on commit 5c2a012

Please sign in to comment.