aboutsummaryrefslogtreecommitdiff
path: root/autoconfig.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2021-08-18 22:11:41 -0700
committerMike Buland <eichlan@xagasoft.com>2021-08-18 22:11:41 -0700
commit345926296f748db5ff283ce69c0ed4d563fcc8ff (patch)
tree3aa50962107cb903bbf30bb2540c19d25bda5adf /autoconfig.cpp
parent52833d24ba86c3e0fe90a12d65f6dc529e9280b7 (diff)
downloadlibbu++-345926296f748db5ff283ce69c0ed4d563fcc8ff.tar.gz
libbu++-345926296f748db5ff283ce69c0ed4d563fcc8ff.tar.bz2
libbu++-345926296f748db5ff283ce69c0ed4d563fcc8ff.tar.xz
libbu++-345926296f748db5ff283ce69c0ed4d563fcc8ff.zip
Updating issues discovered using g++ 10
Diffstat (limited to '')
-rw-r--r--autoconfig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoconfig.cpp b/autoconfig.cpp
index 96f0eab..6dbb2c5 100644
--- a/autoconfig.cpp
+++ b/autoconfig.cpp
@@ -147,8 +147,12 @@ int main( int argc, char *argv[] )
147 FILE *psub = popen("git describe --always", "r"); 147 FILE *psub = popen("git describe --always", "r");
148 buf[fread( buf, 1, 1024, psub )] = '\0'; 148 buf[fread( buf, 1, 1024, psub )] = '\0';
149 for( int j = 0; buf[j]; j++ ) 149 for( int j = 0; buf[j]; j++ )
150 {
150 if( buf[j] == '\n' ) 151 if( buf[j] == '\n' )
152 {
151 buf[j] = '\0'; 153 buf[j] = '\0';
154 }
155 }
152 fwrite( buf, strlen(buf), 1, fOut ); 156 fwrite( buf, strlen(buf), 1, fOut );
153 pclose( psub ); 157 pclose( psub );
154 fprintf( fOut, "\"\n\n#endif\n"); 158 fprintf( fOut, "\"\n\n#endif\n");