Commit Graph

21 Commits

Author SHA1 Message Date
lukem f937c412f3 bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER
Provide a single variable
	CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
	CLANG_NO_ADDR_OF_PACKED_MEMBER
	CC_NO_ADDR_OF_PACKED_MEMBER
	GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
2023-06-03 08:52:53 +00:00
zafer 7fd3f7926f fix typo 2022-02-27 21:05:11 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
christos 9878dfd06c need <sys/stat.h> 2017-01-10 20:53:09 +00:00
sevan d298703f11 Document newfs_v7fs appeared in NetBSD 6.0.
Add AUTHORS secton.
Bump date.
2016-09-12 05:16:04 +00:00
christos d3037dba83 fix error messages containing \n 2015-06-16 23:18:54 +00:00
riz 012f92fc5b Remove -g from CPPFLAGS. 2012-09-05 23:01:42 +00:00
joerg e16a720f89 Don't depend on HAVE_GCC being always defined. 2012-08-10 12:20:10 +00:00
wiz 4f1a87cdfa Sync usage with man page. 2011-08-10 12:13:20 +00:00
uch 7d18226237 newfs_v7fs(8)'s -v and -P options are obsolete. changed to newfs(8) compatible -V option. 2011-08-10 11:31:49 +00:00
uch e97cfbb012 Fix warning message. 2011-08-09 11:18:28 +00:00
uch 49e9e92f1d Check whether superblock is writable sector. 2011-08-09 09:12:07 +00:00
uch 5c1ba4adfa Fixed the problem that partition size over 8GiB(v7fs filesystem limit) failed newfs. 2011-07-22 09:15:10 +00:00
tron 64edb24382 Use howmany() macro as it is used in a lot fo places in this tool anyway
as suggested by Tsugutomo Enami.
2011-07-19 19:57:54 +00:00
joerg 29d01baadc Allow cross-compiling from Linux 2011-07-19 18:29:41 +00:00
tron 4cafa08a7d Don't use roundup2(9) (which should have been howmany(9) anyway) to
fix builds on platforms other than NetBSD.
2011-07-18 22:50:28 +00:00
apb f1ca1ce2bf In sources that get compiled into the tools version of makefs, add:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif

This should fix cross-build problems, but I can't really test
that now, so I am not re-enabling the inclusion of v7fs support
in makefs.
2011-07-18 21:51:49 +00:00
uch a2917fcf47 fix freeblock count bug. 2011-07-10 12:14:01 +00:00
mrg b7e452c793 remove HAVE_GCC == 4 conditional 2011-07-01 01:26:15 +00:00
wiz e0f576648b Various improvements. 2011-06-27 13:50:31 +00:00
uch 9255b46fb4 7th Edition(V7) File System support. and NetBSD symbolic-link, socket, FIFO extension. see newfs_v7fs(8). 2011-06-27 11:52:22 +00:00