mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fix two errors with -Werror=format-security
Fedora (and, I supposed, most recent Linux distros) build everything with -Werror=format-security. If you attempt to build with -DSLIC3R_PERL_XS (which we need in order to run the test suite), the build fails because of two strings in the Perl XS code: /usr/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t "/builddir/build/BUILD/PrusaSlicer-version_2.0.0-rc2/xs/xsp/typemap.xspt" "/builddir/build/BUILD/PrusaSlicer-version_2.0.0-rc2/xs/xsp/Print.xsp":585:31: error: format not a string literal and no format arguments [-Werror=format-security] Ths fixes up two instances of that.
This commit is contained in:
		
							parent
							
								
									3975f4dda0
								
							
						
					
					
						commit
						58d78e8dbd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -165,7 +165,7 @@ _constant() | |||
|             try { | ||||
|                 THIS->process(); | ||||
|             } catch (std::exception& e) { | ||||
|                 croak(e.what()); | ||||
|                 croak("%s\n", e.what()); | ||||
|             } | ||||
|         %}; | ||||
| 
 | ||||
|  | @ -173,7 +173,7 @@ _constant() | |||
|             try { | ||||
|                 THIS->export_gcode(path_template, nullptr); | ||||
|             } catch (std::exception& e) { | ||||
|                 croak(e.what()); | ||||
|                 croak("%s\n", e.what()); | ||||
|             } | ||||
|         %}; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jason Tibbitts
						Jason Tibbitts